Skip to content

Commit

Permalink
fix(StarryNight): fix zero playbar width on startup (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chen00 committed Apr 24, 2024
1 parent 439051a commit d39d5e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions StarryNight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## More

> Playbar panel is resizable using the resize bar from Now Playing View and Queue card.
### Created by

- https://github.com/b-chen00
Expand Down
2 changes: 1 addition & 1 deletion StarryNight/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ waitForElement([".Root__top-container"], ([topContainer]) => {
if (entry.target === rightbar) {
let newWidth = entry.contentRect.width;
if (newWidth == 0) {
const localStorageWidth = localStorage.getItem('223ni6f2epqcidhx5etjafeai:panel-width-saved') + 'px';
const localStorageWidth = localStorage.getItem('223ni6f2epqcidhx5etjafeai:panel-width-saved');
if (localStorageWidth) {
newWidth = localStorageWidth;
}
Expand Down

0 comments on commit d39d5e5

Please sign in to comment.