From aaea660e4523882a86ebc508e7b851666e0eeb88 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 19 Nov 2023 19:16:18 -0500 Subject: [PATCH] refactor(ags): add css option to some custom widgets --- devices/wim/config/ags/js/misc/separator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devices/wim/config/ags/js/misc/separator.js b/devices/wim/config/ags/js/misc/separator.js index 9ff4b14..d9d12a3 100644 --- a/devices/wim/config/ags/js/misc/separator.js +++ b/devices/wim/config/ags/js/misc/separator.js @@ -1,16 +1,16 @@ import { Box } from 'resource:///com/github/Aylur/ags/widget.js'; -export default (size, { vertical = false, ...props } = {}) => { +export default (size, { vertical = false, css = '', ...props } = {}) => { if (vertical) { return Box({ - css: `min-height: ${size}px;`, + css: `min-height: ${size}px; ${css}`, ...props, }); } else { return Box({ - css: `min-width: ${size}px;`, + css: `min-width: ${size}px; ${css}`, ...props, }); }