Skip to content

Commit 7eaaefc

Browse files
gjulivangjulivan
authored andcommitted
chore: add position sticky
1 parent 2283619 commit 7eaaefc

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

  • packages/pluggableWidgets/rich-text-web/src/components/toolbars

packages/pluggableWidgets/rich-text-web/src/components/toolbars/Toolbar.scss

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,25 @@ $rte-gray-ligher: #f8f8f8 !default;
33
$rte-brand-primary: #264ae5 !default;
44
$rte-shadow-color: #00000014 !default;
55

6-
.widget-rich-text.toolbar-bottom {
7-
.tiptap-wrapper {
8-
flex-direction: column-reverse;
6+
.widget-rich-text {
7+
&.toolbar-bottom {
8+
.tiptap-wrapper {
9+
flex-direction: column-reverse;
10+
}
11+
}
12+
13+
&.toolbar-auto {
14+
&.form-control {
15+
/* position sticky only works for overflow visible. this is to override form-control style */
16+
overflow: visible;
17+
}
18+
19+
.tiptap-toolbar {
20+
position: sticky;
21+
z-index: 50;
22+
background-color: white;
23+
top: 0;
24+
}
925
}
1026
}
1127

0 commit comments

Comments
 (0)