Skip to content

Commit

Permalink
refactor: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Mar 11, 2023
1 parent 7d2ebae commit bc2a6ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis/nucleus/src/components/listbox/ListBoxInline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function ListBoxInline({ options, layout }) {
const searchHeight = dense ? 27 : 40;
const extraheight = dense ? 39 : 49;
const minHeight = 49 + (searchVisible ? searchHeight : 0) + extraheight;
const headerHeight = 32;
const { wildCardSearch, searchEnabled } = layout;

const onShowSearch = () => {
Expand All @@ -209,7 +210,7 @@ function ListBoxInline({ options, layout }) {
>
{toolbar && (
<Grid item container style={{ padding: theme.spacing(1) }} wrap="nowrap">
<Grid item container style={{ height: '32px' }} wrap="nowrap">
<Grid item container style={{ height: `${headerHeight}px` }} wrap="nowrap">
<Grid item sx={{ display: 'flex', alignItems: 'center', width: searchIconWidth }}>
{isLocked ? (
<IconButton tabIndex={-1} onClick={unlock} disabled={!isLocked} size="large">
Expand Down

0 comments on commit bc2a6ef

Please sign in to comment.