1.0.29
This commit is contained in:
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}"
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user