Skip to content

Commit

Permalink
Context Menus small fixes (#5625)
Browse files Browse the repository at this point in the history
* make small insert menu and full insert menu same width

* fix scrollbar color and separater width

* fix data picker scrollbar color
  • Loading branch information
lankaukk authored May 6, 2024
1 parent 2754de3 commit 3c16a0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions editor/resources/editor/css/ReactContexify.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
}
.react-contexify__item__content {
min-width: 190px;
width: 100%;
padding-left: 8px;
padding-right: 8px;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export const DataPickerPopup = React.memo(
width: '100%',
scrollbarWidth: 'auto',
colorScheme: 'dark',
scrollbarColor: 'gray transparent',
}}
>
<DataPickerPopupSubvariables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const ComponentPickerContextMenuSimple = React.memo<ComponentPickerContextMenuPr

const submenuLabel = (
<FlexRow
style={{ gap: 10 }}
style={{ gap: 10, width: 228 }}
data-testId={labelTestIdForComponentIcon(data.name, data.moduleName ?? '', data.icon)}
>
<Icn {...iconProps} width={12} height={12} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ const ComponentPickerComponentSection = React.memo(
return (
<div
data-role='component-scroll'
style={{ maxHeight: 250, overflowY: 'scroll', scrollbarWidth: 'auto' }}
style={{
maxHeight: 250,
overflowY: 'scroll',
scrollbarWidth: 'auto',
scrollbarColor: 'gray transparent',
}}
onScroll={onScroll}
>
{components.map((component) => {
Expand Down

0 comments on commit 3c16a0b

Please sign in to comment.