enhance(ui): polish details of the command popups

pull/11452/head
charlie 2024-08-01 16:44:22 +08:00
parent ea58da6083
commit 7226378b16
2 changed files with 4 additions and 4 deletions

View File

@ -384,7 +384,7 @@ button.menu:focus {
.menu-link { .menu-link {
@apply text-popover-foreground/75 select-none hover:text-popover-foreground/100; @apply text-popover-foreground/75 select-none hover:text-popover-foreground/100;
@apply text-sm px-2 py-1.5 mx-1 hover:rounded transition-opacity duration-150; @apply text-sm px-2 py-1.5 hover:rounded transition-opacity duration-150;
} }
.menu-separator { .menu-separator {

View File

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