bruno: fix css issue with patch file

This commit is contained in:
Ignacio Marmolejo
2024-07-12 06:15:10 -07:00
parent e01511309f
commit dd42ff820e
2 changed files with 42 additions and 0 deletions
+5
View File
@@ -73,6 +73,11 @@ buildNpmPackage' rec {
})
];
patches = [
# Workaround to fix css issue in bruno due to electron difference between Nix and mainstream. https://github.com/NixOS/nixpkgs/issues/324176
./scroll-width-fix.patch
];
postPatch = ''
substituteInPlace scripts/build-electron.sh \
--replace-fail 'if [ "$1" == "snap" ]; then' 'exit 0; if [ "$1" == "snap" ]; then'
@@ -0,0 +1,37 @@
diff --git a/packages/bruno-app/src/globalStyles.js b/packages/bruno-app/src/globalStyles.js
index c2b16781..936449ed 100644
--- a/packages/bruno-app/src/globalStyles.js
+++ b/packages/bruno-app/src/globalStyles.js
@@ -163,32 +163,6 @@ const GlobalStyle = createGlobalStyle`
}
- // scrollbar styling
- // the below media query target non-macos devices
- // (macos scrollbar styling is the ideal style reference)
- @media not all and (pointer: coarse) {
- * {
- scrollbar-width: thin;
- scrollbar-color: ${(props) => props.theme.scrollbar.color};
- }
-
- *::-webkit-scrollbar {
- width: 5px;
- }
-
- *::-webkit-scrollbar-track {
- background: transparent;
- border-radius: 5px;
- }
-
- *::-webkit-scrollbar-thumb {
- background-color: ${(props) => props.theme.scrollbar.color};
- border-radius: 14px;
- border: 3px solid ${(props) => props.theme.scrollbar.color};
- }
- }
-
-
// codemirror
.CodeMirror {
.cm-variable-valid {