Skip to content

Commit

Permalink
Use nowrap on tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
standeren committed Jan 4, 2024
1 parent 08a5958 commit c3fe32d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
border-radius: var(--fds-border_radius-large);
}

.tab {
white-space: nowrap;
}

.tabs {
overflow: scroll;
--scroll-bar-color: white;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ export const EditGrid = ({ handleComponentChange, component }: IGenericEditCompo
<Tabs.List className={classes.tabs}>
{Object.values(ViewSize).map((viewSize: ViewSize) => {
return (
<Tabs.Tab key={viewSize} value={viewSize} icon={iconMapping[viewSize] || null}>
<Tabs.Tab
key={viewSize}
value={viewSize}
icon={iconMapping[viewSize] || null}
className={classes.tab}
>
{t(`ux_editor.modal_properties_grid_size_${viewSize}`)}
</Tabs.Tab>
);
Expand Down

0 comments on commit c3fe32d

Please sign in to comment.