mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#6586 fix: combobox disclosure size (#3787)
* dbeaver/pro#6586 fix: combobox disclosure size By default, this component has 1em height and width and thats why it looked different in different components. Pixels values will provide consistency across different environments. * dbeaver/pro#6586 refactor: set parent's font size instead of svg dimensions --------- Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
co-authored by
mr-anton-t
parent
75e9da4705
commit
2fbb71fb96
@@ -196,7 +196,7 @@ export const Combobox: ComboboxType = observer(function Combobox({
|
||||
) : (
|
||||
<ComboboxDisclosure
|
||||
disabled={disabled || loading || readOnly}
|
||||
className="tw:absolute tw:right-2 tw:top-[50%] tw:-translate-y-1/2 tw:*:fill-none! tw:cursor-pointer"
|
||||
className="tw:absolute tw:right-2 tw:top-[50%] tw:-translate-y-1/2 tw:[&>svg]:fill-none! tw:text-sm! tw:cursor-pointer"
|
||||
/>
|
||||
)}
|
||||
{icon && <div className="tw:absolute tw:left-3 tw:w-4 tw:h-4">{typeof icon === 'string' ? <IconOrImage icon={icon} /> : icon}</div>}
|
||||
|
||||
Reference in New Issue
Block a user