This commit is contained in:
jarek committed 2026-05-17 08:02:31 +02:00
1 parent d9054ff347
commit e7100f8926
44 files changed
+1672 -226

No files matched your search

@@ -3,6 +3,7 @@
import { whale } from '@lucide/lab';
import EnvironmentIcon from '$lib/components/EnvironmentIcon.svelte';
import { getLabelColors } from '$lib/utils/label-colors';
import { labelColorOverrides } from '$lib/stores/label-colors';
import { DataGrid } from '$lib/components/data-grid';
import type { DataGridRowState, DataGridSortState } from '$lib/components/data-grid/types';
import type { ColumnConfig } from '$lib/types';
@@ -277,7 +278,7 @@
{#if s?.labels && s.labels.length > 0}
<div class="flex flex-wrap gap-1">
{#each s.labels as label}
{@const colors = getLabelColors(label)}
{@const colors = getLabelColors(label, $labelColorOverrides)}
<span
class="px-1.5 py-0.5 text-[11px] rounded-sm font-medium leading-tight whitespace-nowrap"
style="background-color: {colors.bgColor}; color: {colors.color}"
+4 -3
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { getLabelColors } from '$lib/utils/label-colors';
import { labelColorOverrides } from '$lib/stores/label-colors';
interface Props {
labels?: string[];
@@ -14,7 +15,7 @@
{#if compact}
<div class="flex flex-wrap gap-0.5 pl-6 mt-0.5">
{#each labels as label}
{@const colors = getLabelColors(label)}
{@const colors = getLabelColors(label, $labelColorOverrides)}
<span class="px-1.5 py-0.5 text-[11px] rounded-sm font-medium leading-tight"
style="background-color: {colors.bgColor}; color: {colors.color}">
{label}
@@ -24,7 +25,7 @@
{:else if unified}
<div class="flex flex-wrap gap-0.5 px-4 -mt-0.5 mb-1">
{#each labels as label}
{@const colors = getLabelColors(label)}
{@const colors = getLabelColors(label, $labelColorOverrides)}
<span class="px-1.5 py-0.5 text-[11px] rounded-sm font-medium leading-tight"
style="background-color: {colors.bgColor}; color: {colors.color}">
{label}
@@ -34,7 +35,7 @@
{:else}
<div class="flex flex-wrap gap-0.5 pl-6 pr-4 -mt-8 -mb-4">
{#each labels as label}
{@const colors = getLabelColors(label)}
{@const colors = getLabelColors(label, $labelColorOverrides)}
<span class="px-1.5 py-0.5 text-[11px] rounded-sm font-medium leading-tight"
style="background-color: {colors.bgColor}; color: {colors.color}">
{label}