Skip to content

Commit

Permalink
fix(ui): title not centered in storage info popup
Browse files Browse the repository at this point in the history
Fix #107
  • Loading branch information
ljuzig committed Apr 12, 2024
1 parent e4d0870 commit d22dfad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion src/storage/storageMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [];

Expand Down

0 comments on commit d22dfad

Please sign in to comment.