diff --git a/RELEASES.md b/RELEASES.md index 15eb12a..416d6bf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2,6 +2,7 @@ ### Bug fixes +- Fixed title label not being centered in storage info popup [[#107](https://github.com/AstraExt/astra-monitor/issues/107)] - Allow bars to be empty when the value is zero # Astra Monitor 19 - April 8 2024 diff --git a/src/bars.ts b/src/bars.ts index d0a7f5d..928ba85 100644 --- a/src/bars.ts +++ b/src/bars.ts @@ -285,7 +285,7 @@ export default GObject.registerClass( bordersHelper.bottomRight = border; } } - + size = Math.max(size, 1); const style = `border-radius: ${bordersHelper.topLeft} ${bordersHelper.topRight} ${bordersHelper.bottomRight} ${bordersHelper.bottomLeft};`; if(this.layout === 'vertical') diff --git a/src/storage/storageMenu.ts b/src/storage/storageMenu.ts index 89cb00c..005031c 100644 --- a/src/storage/storageMenu.ts +++ b/src/storage/storageMenu.ts @@ -930,7 +930,7 @@ export default class StorageMenu extends MenuBase { const configuration = StorageMenu.deviceInfoPopupConfiguration; for(const section of configuration) { - popup[section.sectionNr] = popup.addMenuSection(section.title); + popup[section.sectionNr] = popup.addMenuSection(section.title, true, true); popup[section.labels] = []; popup[section.values] = [];