Fix: styling side-effects are no longer visible on monitors with no bars. (#864)
This commit is contained in:
@@ -79,6 +79,11 @@ export const Bar = (() => {
|
|||||||
return !isLayoutEmpty(foundLayout);
|
return !isLayoutEmpty(foundLayout);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const computeClassName = bind(layouts).as(() => {
|
||||||
|
const foundLayout = getLayoutForMonitor(hyprlandMonitor, layouts.get());
|
||||||
|
return !isLayoutEmpty(foundLayout) ? `bar` : '';
|
||||||
|
});
|
||||||
|
|
||||||
const computeAnchor = bind(location).as((loc) => {
|
const computeAnchor = bind(location).as((loc) => {
|
||||||
if (loc === 'bottom') {
|
if (loc === 'bottom') {
|
||||||
return Astal.WindowAnchor.BOTTOM | Astal.WindowAnchor.LEFT | Astal.WindowAnchor.RIGHT;
|
return Astal.WindowAnchor.BOTTOM | Astal.WindowAnchor.LEFT | Astal.WindowAnchor.RIGHT;
|
||||||
@@ -132,7 +137,7 @@ export const Bar = (() => {
|
|||||||
inhibit={bind(idleInhibit)}
|
inhibit={bind(idleInhibit)}
|
||||||
name={`bar-${hyprlandMonitor}`}
|
name={`bar-${hyprlandMonitor}`}
|
||||||
namespace={`bar-${hyprlandMonitor}`}
|
namespace={`bar-${hyprlandMonitor}`}
|
||||||
className={'bar'}
|
className={computeClassName}
|
||||||
application={App}
|
application={App}
|
||||||
monitor={monitor}
|
monitor={monitor}
|
||||||
visible={computeVisibility}
|
visible={computeVisibility}
|
||||||
|
|||||||
Reference in New Issue
Block a user