enhance(ui): polish details of the command popups

This commit is contained in:
charlie
2024-08-01 16:44:22 +08:00
parent ea58da6083
commit 7226378b16
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ pre {
.ui__popover-content, .ui__dropdown-menu-content {
&[data-editor-popup-ref] {
@apply p-1 w-72;
@apply p-1.5 w-72;
&[data-side=top] {
position: relative;
@@ -82,7 +82,7 @@ pre {
}
&[data-editor-popup-ref=commands] {
@apply px-1 py-1 w-72;
@apply w-72;
&[data-side=top] {
max-height: min(calc(var(--radix-popover-content-available-height) - 60px), 460px);
@@ -96,7 +96,7 @@ pre {
&[data-editor-popup-ref=page-search],
&[data-editor-popup-ref=block-search],
&[data-editor-popup-ref=page-search-hashtag] {
@apply px-1 py-1 w-full sm:w-128;
@apply w-full sm:w-128;
}
&[data-editor-popup-ref=datepicker] {