mirror of
https://github.com/morpheusthewhite/spicetify-themes.git
synced 2024-11-22 02:42:54 +01:00
fix(StarryNight): fix zero playbar width on startup (#1052)
This commit is contained in:
parent
439051a271
commit
d39d5e519d
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user