remove unecessary array spread; rename hidden dock thickness option

This commit is contained in:
end-4
2024-04-18 18:54:04 +07:00
parent 13032c8f03
commit 62a4a3f71f
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ const Windows = () => [
SideRight(),
forMonitors(Osk),
Session(),
...(userOptions.dock.enabled ? [forMonitors(Dock)] : []),
userOptions.dock.enabled ? forMonitors(Dock) : null,
// forMonitors(Bar),
...(userOptions.appearance.fakeScreenRounding ? [
forMonitors((id) => Corner(id, 'top left', true)),
@@ -78,8 +78,7 @@ let configOptions = {
},
'dock': {
'enabled': true,
// Threshold for hover to trigger dock display
'hoverMinHeight': 5,
'hiddenThickness': 5,
'pinnedApps': ['firefox', 'org.gnome.Nautilus'],
'layer': 'top',
'monitorExclusivity': true, // Dock will move to other monitor along with focus if enabled
+1 -1
View File
@@ -348,7 +348,7 @@ export default (monitor = 0) => {
},
child: Box({
homogeneous: true,
css: `min-height: ${userOptions.dock.hoverMinHeight}px;`,
css: `min-height: ${userOptions.dock.hiddenThickness}px;`,
children: [
dockRevealer,
]