forked from Shinonome/dots-hyprland
correct indentation, remove unnecessary check
This commit is contained in:
@@ -10,11 +10,11 @@ Loader {
|
|||||||
visible: active
|
visible: active
|
||||||
|
|
||||||
function abbreviateLayoutCode(fullCode) {
|
function abbreviateLayoutCode(fullCode) {
|
||||||
return fullCode.split(':').map(layout => {
|
return fullCode.split(':').map(layout => {
|
||||||
const baseLayout = layout.split('-')[0];
|
const baseLayout = layout.split('-')[0];
|
||||||
return baseLayout.length > 4 ? baseLayout.slice(0, 4) : baseLayout;
|
return baseLayout.slice(0, 4);
|
||||||
}).join('\n');
|
}).join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceComponent: Item {
|
sourceComponent: Item {
|
||||||
implicitWidth: root.vertical ? null : layoutCodeText.implicitWidth
|
implicitWidth: root.vertical ? null : layoutCodeText.implicitWidth
|
||||||
|
|||||||
Reference in New Issue
Block a user