Skip to content

Commit 21d853d

Browse files
authored
fix: change height to maxHeight (#981)
1 parent c3a1746 commit 21d853d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/mantine/src/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@
300300
box-sizing: border-box;
301301
color: var(--bn-colors-menu-text);
302302
height: fit-content;
303+
max-height: inherit;
303304
overflow-y: auto;
304305
padding: 2px;
305306
}
@@ -371,7 +372,7 @@
371372
gap: 7px;
372373
height: fit-content;
373374
justify-items: center;
374-
max-height: min(500px, 100%);
375+
max-height: inherit;
375376
overflow-y: auto;
376377
padding: 20px;
377378
}

packages/react/src/components/SuggestionMenu/GridSuggestionMenu/GridSuggestionMenuController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function GridSuggestionMenuController<
114114
size({
115115
apply({ availableHeight, elements }) {
116116
Object.assign(elements.floating.style, {
117-
height: `${availableHeight - 10}px`,
117+
maxHeight: `${availableHeight - 10}px`,
118118
});
119119
},
120120
}),

packages/react/src/components/SuggestionMenu/SuggestionMenuController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function SuggestionMenuController<
110110
size({
111111
apply({ availableHeight, elements }) {
112112
Object.assign(elements.floating.style, {
113-
height: `${availableHeight - 10}px`,
113+
maxHeight: `${availableHeight - 10}px`,
114114
});
115115
},
116116
}),

0 commit comments

Comments
 (0)