From 22400f2e2095ec4bb3840e2eabe4db0b78ad751d Mon Sep 17 00:00:00 2001 From: bjst0ne Date: Sun, 1 Mar 2026 00:17:19 +0300 Subject: [PATCH] refactor(app): change styles to general design --- .../sketches/details-panel/details-panel.tsx | 2 +- flowsint-app/src/components/ui/tags-input.tsx | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/flowsint-app/src/components/sketches/details-panel/details-panel.tsx b/flowsint-app/src/components/sketches/details-panel/details-panel.tsx index bcb4460..c8363ef 100644 --- a/flowsint-app/src/components/sketches/details-panel/details-panel.tsx +++ b/flowsint-app/src/components/sketches/details-panel/details-panel.tsx @@ -389,7 +389,7 @@ const DetailsPanel = memo(() => { handlePropertyChange(key, tags)} - orientation='vertical' + orientation='horizontal' /> ) : ( { function TagsInput({ value, onChange, - placeholder = "Input new tag...", + placeholder = "Input new...", disabled = false, orientation = 'vertical', className, @@ -44,10 +44,14 @@ function TagsInput({ onChange(value.filter((tag) => tag !== tagToRemove)); }; + const getPlaceholder = (): string => { + return value.length === 0 ? "Empty" : placeholder; + }; + return (
))} - setInputValue(e.target.value)} onKeyDown={handleKeyDown} onBlur={addTag} - placeholder={placeholder} - disabled={disabled} - className={cn( - "flex-1 border-0 bg-transparent p-0 text-sm outline-none focus-visible:ring-0 focus-visible:ring-offset-0", - "text-center" - )} + placeholder={getPlaceholder()} + className="w-28 text-right text-[12px] bg-transparent outline-none placeholder:text-muted-foreground/30 focus:bg-muted/20 px-1 rounded transition-colors truncate" />
);