mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -392,8 +392,10 @@ NBox {
|
||||
// Map section IDs to correct position keys based on bar orientation
|
||||
var positionKey = section;
|
||||
if (root.barIsVertical) {
|
||||
if (section === "left") positionKey = "top";
|
||||
else if (section === "right") positionKey = "bottom";
|
||||
if (section === "left")
|
||||
positionKey = "top";
|
||||
else if (section === "right")
|
||||
positionKey = "bottom";
|
||||
}
|
||||
if (I18n.hasTranslation("positions." + positionKey)) {
|
||||
displayLabel = I18n.tr("positions." + positionKey);
|
||||
|
||||
Reference in New Issue
Block a user