From bdc2fa160278177921b7cef22382afb84c80834e Mon Sep 17 00:00:00 2001 From: z Date: Sat, 31 Aug 2024 15:52:37 +0100 Subject: [PATCH 1/2] Fix sidebar switch snippet When now playing sidebar is collapsed it was breaking because it was taking up the wrong amount of space --- resources/snippets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/snippets.json b/resources/snippets.json index c686176b..fa3b929b 100644 --- a/resources/snippets.json +++ b/resources/snippets.json @@ -344,7 +344,7 @@ { "title": "Switch Sidebars", "description": "Move the navigation panel to the right and the information sidebar to the left.", - "code": ".Root__top-container .Root__nav-bar { grid-area: right-sidebar !important; } .Root__top-container .Root__right-sidebar { grid-area: left-sidebar !important; }", + "code": ".Root__top-container .Root__nav-bar { grid-area: right-sidebar !important; } .Root__top-container .Root__right-sidebar { grid-area: left-sidebar !important; } [data-right-sidebar-hidden=true] .Root__main-view { grid-area: main-view / main-view / main-view / left-sidebar !important; }", "preview": "resources/assets/snippets/switch-sidebars.png" }, { From cd91fbb6c171566cd5a04f709d6254f50ed3cfb3 Mon Sep 17 00:00:00 2001 From: z Date: Sat, 31 Aug 2024 15:53:43 +0100 Subject: [PATCH 2/2] remove extra spaces --- resources/snippets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/snippets.json b/resources/snippets.json index fa3b929b..bfd79942 100644 --- a/resources/snippets.json +++ b/resources/snippets.json @@ -344,7 +344,7 @@ { "title": "Switch Sidebars", "description": "Move the navigation panel to the right and the information sidebar to the left.", - "code": ".Root__top-container .Root__nav-bar { grid-area: right-sidebar !important; } .Root__top-container .Root__right-sidebar { grid-area: left-sidebar !important; } [data-right-sidebar-hidden=true] .Root__main-view { grid-area: main-view / main-view / main-view / left-sidebar !important; }", + "code": ".Root__top-container .Root__nav-bar { grid-area: right-sidebar !important; } .Root__top-container .Root__right-sidebar { grid-area: left-sidebar !important; } [data-right-sidebar-hidden=true] .Root__main-view { grid-area: main-view / main-view / main-view / left-sidebar !important; }", "preview": "resources/assets/snippets/switch-sidebars.png" }, {