mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 00:03:00 +00:00
style: drop the simplified node icon badge and enlarge the icon
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
313b0bece9
commit
a7209d7cbb
@@ -58,15 +58,15 @@
|
||||
title={data.title}
|
||||
>
|
||||
<div
|
||||
class="shrink-0 flex items-center justify-center rounded-md bg-surface-tertiary border border-border-light text-secondary"
|
||||
class="shrink-0 flex items-center justify-center text-secondary"
|
||||
style="width: {SIMPLIFIED.badgeSize}px; height: {SIMPLIFIED.badgeSize}px;"
|
||||
>
|
||||
{#if data.module}
|
||||
<FlowModuleIcon module={data.module} size={14} />
|
||||
<FlowModuleIcon module={data.module} size={16} />
|
||||
{:else if data.kind === 'input'}
|
||||
<ArrowRightToLine size={14} />
|
||||
<ArrowRightToLine size={16} />
|
||||
{:else if data.kind === 'result'}
|
||||
<Flag size={14} />
|
||||
<Flag size={16} />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="flex flex-col min-w-0 flex-1">
|
||||
|
||||
@@ -12,8 +12,8 @@ export const SIMPLIFIED = {
|
||||
minWidth: 150,
|
||||
maxWidth: 340,
|
||||
paddingX: 12,
|
||||
/** The icon's badge, and the space between it and the text */
|
||||
badgeSize: 24,
|
||||
/** The icon's slot, and the space between it and the text */
|
||||
badgeSize: 18,
|
||||
badgeGap: 10,
|
||||
rowHeight: 16,
|
||||
paddingY: 10,
|
||||
|
||||
Reference in New Issue
Block a user