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" />
);