enhance(ui): refactor the block/page/hashtag search modals with the shui popups

This commit is contained in:
charlie
2024-07-22 18:44:59 +08:00
parent b948786eff
commit dadf966809
2 changed files with 26 additions and 18 deletions

View File

@@ -35,22 +35,6 @@
&[data-modal-name] {
@apply bg-popover border overflow-x-hidden overflow-y-auto rounded-lg py-1;
}
&[data-modal-name="commands"],
&[data-modal-name="select-code-block-mode"] {
@screen sm {
width: 380px !important;
max-width: 90vw !important;
}
}
&[data-modal-name="date-picker"] {
@apply py-0;
.rc-datepicker {
@apply my-0;
}
}
}
.is-mobile {
@@ -109,6 +93,12 @@ 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-96;
}
&[data-editor-popup-ref=datepicker] {
@apply w-auto;
}