fix(StarryNight): fix zero playbar width on startup (#1052)

This commit is contained in:
Brandon Chen 2024-04-23 20:35:15 -04:00 committed by GitHub
parent 439051a271
commit d39d5e519d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}