@widgetic/creator 0.3.61 → 0.3.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
const { versionLabel, commitSha = null, showCommit = false, dateLabel = null, isLive = false, isDraft = false, selected = false, busy = false, publishDisabled = false, publishDisabledReason = null, setLiveDisabled = false, onselect, onpublish, onsetlive }: Props = $props();
|
|
41
41
|
|
|
42
42
|
// One fixed width per column — identical on every row and in both dropdowns.
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
const COL_VERSION = 'w-
|
|
46
|
-
const COL_COMMIT = 'w-
|
|
47
|
-
const COL_DATE = 'w-[
|
|
48
|
-
const COL_ACTION = 'w-[
|
|
43
|
+
// Explicit PIXEL widths that hug the content (vN, 7-char SHA, dd/mm/yyyy
|
|
44
|
+
// hh:mm) — no rem sizing, no floating side padding.
|
|
45
|
+
const COL_VERSION = 'w-[16px] justify-end';
|
|
46
|
+
const COL_COMMIT = 'w-[44px] justify-end';
|
|
47
|
+
const COL_DATE = 'w-[88px]';
|
|
48
|
+
const COL_ACTION = 'w-[60px]';
|
|
49
49
|
</script>
|
|
50
50
|
|
|
51
51
|
<div
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
{#if isDraft}
|
|
70
70
|
<!-- DRAFT lives in the date slot — same column, same width, no date line. -->
|
|
71
71
|
<span
|
|
72
|
-
class="{COL_DATE} flex shrink-0 items-center rounded bg-amber-50 py-0.5 font-semibold uppercase tracking-wide text-amber-600"
|
|
72
|
+
class="{COL_DATE} flex shrink-0 items-center justify-center rounded bg-amber-50 py-0.5 font-semibold uppercase tracking-wide text-amber-600"
|
|
73
73
|
title="Not published — preview only"
|
|
74
74
|
>Draft</span>
|
|
75
75
|
{:else}
|
|
76
|
-
<span class="{COL_DATE} flex shrink-0 items-center whitespace-nowrap tabular-nums text-slate-400">{dateLabel || '—'}</span>
|
|
76
|
+
<span class="{COL_DATE} flex shrink-0 items-center justify-start whitespace-nowrap tabular-nums text-slate-400">{dateLabel || '—'}</span>
|
|
77
77
|
{/if}
|
|
78
78
|
{#if isLive}
|
|
79
79
|
<span class="{COL_ACTION} flex shrink-0 items-center justify-center rounded bg-emerald-100 py-0.5 font-semibold uppercase tracking-wide text-emerald-600">live</span>
|