Skip to content

Commit 1c2e7ba

Browse files
committed
ensure scrollable bricks in sidebar
1 parent 19adae2 commit 1c2e7ba

File tree

3 files changed

+39
-32
lines changed

3 files changed

+39
-32
lines changed

resources/css/index.css

+15-10
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
@apply overflow-hidden;
88

99
.fi-input-wrp-input {
10-
@apply flex;
10+
@apply flex max-h-[40rem];
1111

1212
.mason-editor-wrapper {
1313
@apply flex-1;
1414

1515
.mason-editor {
16-
@apply min-h-full max-h-[40rem] overflow-y-auto flex-1 h-full;
16+
@apply min-h-full overflow-y-auto flex-1 h-full;
1717

1818
.tiptap {
1919
@apply min-h-full;
@@ -93,10 +93,11 @@
9393
}
9494

9595
.mason-sidebar {
96-
@apply hidden shrink-0 divide-y divide-gray-950/10 min-w-[10rem] max-w-sm md:flex flex-col h-full border-s border-gray-950/10 bg-gray-50 dark:border-white/5 dark:bg-gray-950/20 divide-white/5;
96+
@apply hidden shrink-0 divide-y divide-gray-950/10 min-w-[10rem] max-w-sm md:flex flex-col h-full border-s border-gray-950/10 bg-gray-50 dark:border-white/5 dark:bg-gray-950/20 dark:divide-white/5;
9797

9898
.mason-controls,
99-
.mason-brick-actions {
99+
.mason-actions-search,
100+
.mason-actions-bricks {
100101
@apply p-2 gap-2;
101102
}
102103

@@ -112,14 +113,18 @@
112113
}
113114
}
114115

115-
.mason-brick-actions {
116-
@apply grid;
116+
.mason-actions {
117+
@apply overflow-hidden flex-1 flex flex-col divide-y divide-gray-950/10 dark:divide-white/5;
118+
119+
.mason-actions-bricks {
120+
@apply flex-1 overflow-y-auto flex flex-col gap-2;
117121

118-
.mason-brick-action {
119-
@apply cursor-move flex items-center gap-2 rounded border text-xs ps-3 pe-4 py-2 bg-white dark:bg-gray-800 dark:border-gray-700;
122+
.mason-actions-brick {
123+
@apply cursor-move flex items-center gap-2 rounded border text-xs ps-3 pe-4 py-2 bg-white dark:bg-gray-800 dark:border-gray-700;
120124

121-
&.filtered {
122-
display: none !important;
125+
&.filtered {
126+
display: none !important;
127+
}
123128
}
124129
}
125130
}

0 commit comments

Comments
 (0)