File tree Expand file tree Collapse file tree 6 files changed +55
-65
lines changed
03-formatting-toolbar-block-type-items
06-custom-schema/01-alert-block Expand file tree Collapse file tree 6 files changed +55
-65
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export const Alert = createReactBlockSpec(
73
73
return (
74
74
< div className = { "alert" } data-alert-type = { props . block . props . type } >
75
75
{ /*Icon which opens a menu to choose the Alert type*/ }
76
- < Menu withinPortal = { false } zIndex = { 999999 } >
76
+ < Menu withinPortal = { false } >
77
77
< Menu . Target >
78
78
< div className = { "alert-icon-wrapper" } contentEditable = { false } >
79
79
< Icon
Original file line number Diff line number Diff line change 1
1
.slash-menu {
2
- z-index : 9999 ;
2
+ background-color : white;
3
+ border : 1px solid lightgray;
4
+ border-radius : 2px ;
5
+ box-shadow : 0 0 8px # dddddd ;
3
6
4
- background-color : white;
5
- border : 1px solid lightgray;
6
- border-radius : 2px ;
7
- box-shadow : 0 0 8px # dddddd ;
7
+ display : flex;
8
+ flex-direction : column;
9
+ gap : 8px ;
10
+ height : fit-content;
11
+ max-height : 100% ;
8
12
9
- display : flex;
10
- flex-direction : column;
11
- gap : 8px ;
12
- height : fit-content;
13
- max-height : 100% ;
13
+ overflow : auto;
14
14
15
- overflow : auto ;
15
+ padding : 8 px ;
16
16
17
- padding : 8px ;
18
-
19
- top : 8px ;
17
+ top : 8px ;
20
18
}
21
19
22
20
.slash-menu-item {
23
- background-color : white;
24
- border : 1px solid lightgray;
25
- border-radius : 2px ;
26
- box-shadow : 0 0 4px # dddddd ;
21
+ background-color : white;
22
+ border : 1px solid lightgray;
23
+ border-radius : 2px ;
24
+ box-shadow : 0 0 4px # dddddd ;
27
25
28
- cursor : pointer;
26
+ cursor : pointer;
29
27
30
- font-size : 16px ;
28
+ font-size : 16px ;
31
29
32
- align-items : center;
33
- display : flex;
34
- flex-direction : row;
30
+ align-items : center;
31
+ display : flex;
32
+ flex-direction : row;
35
33
36
- padding : 8px ;
34
+ padding : 8px ;
37
35
}
38
36
39
- .slash-menu-item : hover , .slash-menu-item .selected {
40
- background-color : lightgray;
41
- }
37
+ .slash-menu-item : hover ,
38
+ .slash-menu-item .selected {
39
+ background-color : lightgray;
40
+ }
Original file line number Diff line number Diff line change 1
1
.emoji-picker {
2
- z-index : 9999 ;
2
+ background-color : white;
3
+ border : 1px solid lightgray;
4
+ border-radius : 2px ;
5
+ box-shadow : 0 0 8px # dddddd ;
3
6
4
- background-color : white;
5
- border : 1px solid lightgray;
6
- border-radius : 2px ;
7
- box-shadow : 0 0 8px # dddddd ;
7
+ display : grid;
8
+ flex-direction : column;
9
+ gap : 8px ;
10
+ height : fit-content;
11
+ max-height : 100% ;
8
12
9
- display : grid;
10
- flex-direction : column;
11
- gap : 8px ;
12
- height : fit-content;
13
- max-height : 100% ;
13
+ overflow : auto;
14
14
15
- overflow : auto ;
15
+ padding : 8 px ;
16
16
17
- padding : 8px ;
18
-
19
- top : 8px ;
17
+ top : 8px ;
20
18
}
21
19
22
20
.emoji-picker-item {
23
- background-color : white;
24
- border : 1px solid lightgray;
25
- border-radius : 2px ;
26
- box-shadow : 0 0 4px # dddddd ;
21
+ background-color : white;
22
+ border : 1px solid lightgray;
23
+ border-radius : 2px ;
24
+ box-shadow : 0 0 4px # dddddd ;
27
25
28
- cursor : pointer;
26
+ cursor : pointer;
29
27
30
- font-size : 16px ;
28
+ font-size : 16px ;
31
29
32
- align-items : center;
33
- display : flex;
34
- flex-direction : row;
30
+ align-items : center;
31
+ display : flex;
32
+ flex-direction : row;
35
33
36
- padding : 8px ;
34
+ padding : 8px ;
37
35
}
38
36
39
- .emoji-picker-item : hover , .emoji-picker-item .selected {
40
- background-color : lightgray;
41
- }
37
+ .emoji-picker-item : hover ,
38
+ .emoji-picker-item .selected {
39
+ background-color : lightgray;
40
+ }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const Alert = createReactBlockSpec(
71
71
return (
72
72
< div className = { "alert" } data-alert-type = { props . block . props . type } >
73
73
{ /*Icon which opens a menu to choose the Alert type*/ }
74
- < Menu withinPortal = { false } zIndex = { 999999 } >
74
+ < Menu withinPortal = { false } >
75
75
< Menu . Target >
76
76
< div className = { "alert-icon-wrapper" } contentEditable = { false } >
77
77
< Icon
Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ export const Popover = (
16
16
assertEmpty ( rest ) ;
17
17
18
18
return (
19
- < MantinePopover
20
- withinPortal = { false }
21
- zIndex = { 10000 }
22
- opened = { opened }
23
- position = { position } >
19
+ < MantinePopover withinPortal = { false } opened = { opened } position = { position } >
24
20
{ children }
25
21
</ MantinePopover >
26
22
) ;
Original file line number Diff line number Diff line change 79
79
text-decoration : revert;
80
80
}
81
81
82
- .bn-shadcn [data-radix-popper-content-wrapper ] {
83
- z-index : 99999 !important ;
84
- }
85
-
86
82
.bn-shadcn .bn-editor : focus-visible {
87
83
outline : none;
88
84
}
You can’t perform that action at this time.
0 commit comments