Skip to content

Commit ae684e6

Browse files
authored
fix: update max-height to inherit for suggestion menus (#1282)
1 parent 10ef411 commit ae684e6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/03-ui-components/07-suggestion-menus-slash-menu-component/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
flex-direction: column;
99
gap: 8px;
1010
height: fit-content;
11-
max-height: 100%;
11+
max-height: inherit;
1212

1313
overflow: auto;
1414

examples/03-ui-components/09-suggestion-menus-emoji-picker-component/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
flex-direction: column;
99
gap: 8px;
1010
height: fit-content;
11-
max-height: 100%;
11+
max-height: inherit;
1212

1313
overflow: auto;
1414

packages/ariakit/src/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
.bn-ariakit .bn-suggestion-menu {
6161
height: fit-content;
62-
max-height: 100%;
62+
max-height: inherit;
6363
}
6464

6565
.bn-ariakit .bn-color-picker-dropdown {
@@ -97,7 +97,7 @@
9797
gap: 7px;
9898
height: fit-content;
9999
justify-items: center;
100-
max-height: min(500px, 100%);
100+
max-height: inherit;
101101
overflow-y: auto;
102102
padding: 20px;
103103
}

packages/shadcn/src/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
.bn-shadcn .bn-suggestion-menu {
110110
height: fit-content;
111-
max-height: 100%;
111+
max-height: inherit;
112112
}
113113

114114
.bn-shadcn .bn-suggestion-menu-item[aria-selected="true"],
@@ -124,7 +124,7 @@
124124
gap: 7px;
125125
height: fit-content;
126126
justify-items: center;
127-
max-height: min(500px, 100%);
127+
max-height: inherit;
128128
overflow-y: auto;
129129
padding: 20px;
130130
}

0 commit comments

Comments
 (0)