mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Setting: Set the default value of item.direction (#11214)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user