forked from Shinonome/dots-hyprland
fix fat toggle button
This commit is contained in:
@@ -44,6 +44,7 @@ export const ConfigToggle = ({
|
|||||||
});
|
});
|
||||||
const toggleButton = Box({
|
const toggleButton = Box({
|
||||||
hpack: 'end',
|
hpack: 'end',
|
||||||
|
vpack: 'center',
|
||||||
className: `switch-bg ${enabled.value ? 'switch-bg-true' : ''}`,
|
className: `switch-bg ${enabled.value ? 'switch-bg-true' : ''}`,
|
||||||
homogeneous: true,
|
homogeneous: true,
|
||||||
children: [toggleButtonIndicator],
|
children: [toggleButtonIndicator],
|
||||||
@@ -55,8 +56,9 @@ export const ConfigToggle = ({
|
|||||||
tooltipText: desc,
|
tooltipText: desc,
|
||||||
className: 'txt spacing-h-5',
|
className: 'txt spacing-h-5',
|
||||||
children: [
|
children: [
|
||||||
...(icon !== undefined ? [MaterialIcon(icon, 'norm')] : []),
|
...(icon !== undefined ? [MaterialIcon(icon, 'norm', {vpack: 'center'})] : []),
|
||||||
...(name !== undefined ? [Label({
|
...(name !== undefined ? [Label({
|
||||||
|
vpack: 'center',
|
||||||
className: 'txt txt-small',
|
className: 'txt txt-small',
|
||||||
label: name,
|
label: name,
|
||||||
})] : []),
|
})] : []),
|
||||||
|
|||||||
Reference in New Issue
Block a user