Remove the unintended empty space from the power module in the bar. (#714)

This commit is contained in:
Jas Singh
2025-01-11 12:40:02 -08:00
committed by GitHub
parent db3fa88d18
commit fab3a8c3a1

View File

@@ -2,7 +2,7 @@ import options from 'src/options';
import { Module } from '../../shared/Module'; import { Module } from '../../shared/Module';
import { inputHandler } from 'src/components/bar/utils/helpers'; import { inputHandler } from 'src/components/bar/utils/helpers';
import { BarBoxChild } from 'src/lib/types/bar'; import { BarBoxChild } from 'src/lib/types/bar';
import { bind } from 'astal'; import { bind, Variable } from 'astal';
import { Astal } from 'astal/gtk3'; import { Astal } from 'astal/gtk3';
const { icon, leftClick, rightClick, middleClick, scrollUp, scrollDown } = options.bar.customModules.power; const { icon, leftClick, rightClick, middleClick, scrollUp, scrollDown } = options.bar.customModules.power;
@@ -11,6 +11,7 @@ export const Power = (): BarBoxChild => {
const powerModule = Module({ const powerModule = Module({
tooltipText: 'Power Menu', tooltipText: 'Power Menu',
textIcon: bind(icon), textIcon: bind(icon),
showLabelBinding: Variable(false),
boxClass: 'powermodule', boxClass: 'powermodule',
props: { props: {
setup: (self: Astal.Button) => { setup: (self: Astal.Button) => {