Fix cubic review

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-01 15:54:33 +04:00
parent 8f68f7116a
commit d0cefdee2f
6 changed files with 43 additions and 38 deletions

View File

@@ -97,7 +97,11 @@ export function RowButton({
"py-2 bg-highlight hover:bg-highlight-hover active:bg-highlight-pressed cursor-pointer w-full flex gap-2 items-center justify-center text-sm text-txt-secondary",
props.className,
)}
style={{ gridColumnEnd: -1, gridColumnStart: 1 }}
style={{
gridColumnEnd: -1,
gridColumnStart: 1,
...props.style,
}}
>
<IconComponent size={16} />
{children}

View File

@@ -146,12 +146,13 @@ export function Select<T>({
<Content
position="popper"
sideOffset={5}
{...dropdownProps}
style={{
minWidth: "var(--radix-select-trigger-width)",
maxHeight:
"var(--radix-select-content-available-height)",
"var(--radix-select-content-available-height)",
...dropdownProps?.style,
}}
{...dropdownProps}
className={content({ className: dropdownProps?.className })}
>
{onSearch && (

View File

@@ -24,8 +24,10 @@ export function TextCell(props: Props) {
if (props.required && inputValue === "") {
return;
}
setValue(inputValue);
onUpdate(props.name, inputValue);
if (inputValue !== props.defaultValue) {
setValue(inputValue);
onUpdate(props.name, inputValue);
}
};
return (