mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
fix formatting
This commit is contained in:
@@ -43,9 +43,7 @@ const emit = defineEmits<{
|
||||
disabled:opacity-50 disabled:cursor-not-allowed" />
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
Stop the running time entry to edit the timesheet
|
||||
</TooltipContent>
|
||||
<TooltipContent> Stop the running time entry to edit the timesheet </TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
<DurationSecondsInput
|
||||
|
||||
@@ -26,9 +26,7 @@ defineEmits<{
|
||||
<Button variant="ghost" size="sm" :disabled="busy">
|
||||
<LoadingSpinner v-if="busy" class="h-3.5 w-3.5 m-0" />
|
||||
Copy last week
|
||||
<ChevronDownIcon
|
||||
v-if="!busy"
|
||||
class="h-3.5 w-3.5 ml-1 text-icon-default" />
|
||||
<ChevronDownIcon v-if="!busy" class="h-3.5 w-3.5 ml-1 text-icon-default" />
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start" class="min-w-[220px]">
|
||||
|
||||
@@ -58,7 +58,12 @@ const emit = defineEmits<{
|
||||
<div class="inline-block min-w-full align-middle">
|
||||
<div
|
||||
class="grid min-w-full w-max border-y border-default-background-separator"
|
||||
style="grid-template-columns: minmax(420px, 1fr) repeat(7, minmax(96px, 120px)) minmax(100px, auto) 40px;">
|
||||
style="
|
||||
grid-template-columns: minmax(420px, 1fr) repeat(7, minmax(96px, 120px)) minmax(
|
||||
100px,
|
||||
auto
|
||||
) 40px;
|
||||
">
|
||||
<!-- Header row -->
|
||||
<div
|
||||
class="bg-background dark:bg-secondary pl-7 pr-3 py-1 text-xs text-text-tertiary md:sticky md:left-0 md:z-10">
|
||||
|
||||
@@ -170,12 +170,9 @@ async function createTag(name: string): Promise<Tag | undefined> {
|
||||
@remove-row="handleRemoveRow"
|
||||
@cell-update="handleCellUpdate"
|
||||
@project-task-change="
|
||||
(row, projectId, taskId) =>
|
||||
handleRowIdentityChange(row, { projectId, taskId })
|
||||
"
|
||||
@billable-change="
|
||||
(row, billable) => handleRowIdentityChange(row, { billable })
|
||||
(row, projectId, taskId) => handleRowIdentityChange(row, { projectId, taskId })
|
||||
"
|
||||
@billable-change="(row, billable) => handleRowIdentityChange(row, { billable })"
|
||||
@tags-change="(row, tags) => handleRowIdentityChange(row, { tags })"
|
||||
@add-row="handleAddRow" />
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ export function findFreeWindowOnDay(
|
||||
// Sort + merge so we can walk a clean [gap, obstacle, gap, ...] sequence.
|
||||
obstacles.sort((a, b) => a.start.diff(b.start));
|
||||
|
||||
|
||||
// merge overlaps
|
||||
const merged: Interval[] = [];
|
||||
for (const obs of obstacles) {
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
type FreeWindow,
|
||||
} from './cellMath';
|
||||
|
||||
|
||||
/**
|
||||
* Cell-level edit dispatcher. Picks one of four strategies based on
|
||||
* the diff between current and requested totals:
|
||||
@@ -317,6 +316,5 @@ export function useTimesheetCellMutations(
|
||||
return best;
|
||||
}
|
||||
|
||||
|
||||
return { handleCellUpdate };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user