Skip to content

Commit

Permalink
Fix enum config select element being clipped in session config panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Feb 23, 2024
1 parent edc85bd commit 5baed33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion shared/studio/components/sessionState/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,14 @@ function ListItem({
) : null}
</div>

<div className={cn(styles.itemValue, {[styles.inactive]: !active})}>
<div
className={cn(styles.itemValue, {
[styles.inactive]: !active,
[styles.noOverflow]: !(
type.schemaType === "Scalar" && type.enum_values != null
),
})}
>
{active ? (
<>
<Input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,15 @@
align-items: center;
min-height: 32px;
min-width: 0;
overflow-x: auto;

@include hideScrollbar;

@include darkTheme {
--select-option-color: #adadad;
}

&.noOverflow {
overflow-x: auto;
@include hideScrollbar;
}
}

.setNullButton {
Expand Down

0 comments on commit 5baed33

Please sign in to comment.