Skip to content

Commit

Permalink
style: gantt dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Jul 6, 2023
1 parent 743a88f commit 3e7b27e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion apps/frontend/src/lib/gantt/GanttView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
id: r.id.value,
label: r.getDisplayFieldsValue($table),
height: 52,
classes: 'bg-gray-100 dark:!bg-gray-400 dark:text-white',
classes: 'bg-gray-100 dark:!bg-gray-300 dark:text-white',
}))
$: tasks = records.map<TaskModel>((r) => {
const value = r.valuesJSON?.[field.id.value]
Expand Down Expand Up @@ -157,4 +157,24 @@
#undb-gantt :global(.sg-hover .sg-table-body-cell) {
background-color: #00000008;
}
:global(.dark .sg-gantt .column-header-cell) {
color: white;
}
:global(.dark .sg-gantt .column-header-cell:hover) {
color: #374151;
background-color: #f7f7f7;
}
:global(.dark .sg-gantt .sg-table-body-cell) {
color: white;
background-color: #374151;
border: none;
}
:global(.dark .sg-gantt .sg-table-header-cell) {
color: white;
background-color: #374151;
}
</style>

0 comments on commit 3e7b27e

Please sign in to comment.