mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Setting: Set the default value of item.direction (#11214)
This commit is contained in:
parent
e849a73fa5
commit
2770bb3126
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ export class Setting {
|
|||
actionElement = item.createActionElement();
|
||||
}
|
||||
const tagName = actionElement?.classList.contains("b3-switch")?"label":"div";
|
||||
if (item.direction === undefined) {
|
||||
item.direction = ["TEXTAREA"].includes(actionElement.tagName) ? 'row' : 'column';
|
||||
}
|
||||
if (item.direction === "row") {
|
||||
html = `<${tagName} class="b3-label">
|
||||
<div class="fn__block">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue