mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
:lipsticks: card
This commit is contained in:
parent
03f2f628f3
commit
e46453b531
2 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue