nixos-configs/devices/wim/config/ags/js/misc/separator.js

16 lines
319 B
JavaScript
Raw Normal View History

import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
export default (size, { vertical = false } = {}) => {
2023-11-06 18:37:23 -05:00
if (vertical) {
return Box({
2023-11-06 18:37:23 -05:00
css: `min-height: ${size}px;`,
});
}
else {
return Box({
2023-11-06 18:37:23 -05:00
css: `min-width: ${size}px;`,
});
}
};