:lipsticks: card

This commit is contained in:
Vanessa 2024-01-11 11:18:12 +08:00
parent 03f2f628f3
commit e46453b531
2 changed files with 8 additions and 3 deletions

View file

@ -31,7 +31,7 @@
}
&__action {
padding: 8px 4px;
padding: 8px;
.b3-button {
padding: 8px 0;
@ -48,7 +48,11 @@
& > div {
flex: 1;
margin: 0 4px;
margin-right: 8px;
&:last-child {
margin-right: 0;
}
& > span {
display: flex;

View file

@ -484,10 +484,11 @@ export const openCardByData = async (app: App, cardsData: ICardData, cardType: T
});
dialog.editor = editor;
/// #if !MOBILE
const focusElement = dialog.element.querySelector("svg");
const focusElement = dialog.element.querySelector(".block__icons") as HTMLElement;
focusElement.focus();
const range = document.createRange();
range.selectNodeContents(focusElement);
range.collapse();
focusByRange(range);
/// #endif
};