Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix(bar): workspace name misalignment in workspaces component (#118)

Lyzefa1669ed41e5
diff --git a/GlazeWM.Bar/Components/WorkspacesComponent.xaml b/GlazeWM.Bar/Components/WorkspacesComponent.xaml
index 059fb608..595aac80 100644
--- a/GlazeWM.Bar/Components/WorkspacesComponent.xaml
+++ b/GlazeWM.Bar/Components/WorkspacesComponent.xaml
@@ -19,6 +19,7 @@
<Button
x:Name="WorkspaceButton"
Content="{Binding DisplayName}"
+ VerticalAlignment="Center"
Command="{Binding DataContext.FocusWorkspaceCommand, ElementName=_workspacesComponent}"
CommandParameter="{Binding Name}"
Background="{Binding DataContext.DefaultWorkspaceBackground, ElementName=_workspacesComponent}"
@@ -28,8 +29,8 @@
FontWeight="{Binding DataContext.FontWeight, ElementName=_workspacesComponent}"
FontSize="{Binding DataContext.FontSize, ElementName=_workspacesComponent}"
BorderThickness="{Binding DataContext.DefaultWorkspaceBorderWidth, ElementName=_workspacesComponent}"
- MinWidth="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
- MinHeight="{Binding ActualWidth, RelativeSource={RelativeSource Self}}"
+ MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource Self}}"
+ MinHeight="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Cursor="Hand" />
<DataTemplate.Triggers>