From 3e6e0435a16d5839d0242e6495d4239ad257c074 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Thu, 26 Sep 2024 22:05:05 +0800 Subject: [PATCH] fix: only limit files bucket size when sidebar is open --- src/styles/github.scss | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/styles/github.scss b/src/styles/github.scss index c157f75f..e38a0950 100644 --- a/src/styles/github.scss +++ b/src/styles/github.scss @@ -5,14 +5,17 @@ min-width: $github-content-width; } - #files-bucket, - .files-bucket { - & > .position-relative.px-4 { - width: unset !important; - left: unset !important; - right: unset !important; - margin-left: unset !important; - margin-right: unset !important; + &[data-with-gitako-spacing='left'], + &[data-with-gitako-spacing='right'] { + #files-bucket, + .files-bucket { + & > .position-relative.px-4 { + width: unset !important; + left: unset !important; + right: unset !important; + margin-left: unset !important; + margin-right: unset !important; + } } }