enhance(ui): polish the editor slash commands cp

This commit is contained in:
charlie
2024-04-24 15:52:57 +08:00
parent 7e12ce22b7
commit 7bd25fa2c3
2 changed files with 91 additions and 87 deletions

View File

@@ -94,6 +94,11 @@ pre {
.ui__popover-content, .ui__dropdown-menu-content {
&[data-editor-popup-ref] {
@apply p-1 w-72;
&[data-side=top] {
position: relative;
top: -18px;
}
}
&[data-editor-popup-ref=commands] {
@@ -101,8 +106,6 @@ pre {
&[data-side=top] {
max-height: min(calc(var(--radix-popover-content-available-height) - 60px), 460px);
position: relative;
top: -18px;
}
&[data-side=bottom] {