diff --git a/.storybook/preview.ts b/.storybook/preview.ts index eed5259e0..16cbbf2c8 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -12,12 +12,12 @@ const preview: Preview = { backgrounds: { default: 'GitButler_1', values: [ - { - name: 'GitButler_1', - value: '#27272A', - }, - ], - }, + { + name: 'GitButler_1', + value: '#27272A' + } + ] + } } }; diff --git a/src/app.postcss b/src/app.postcss index 869466c7e..9d7d59b14 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -3,12 +3,44 @@ @tailwind components; @tailwind utilities; +/* this is trick to make webkit use hardware acceleration */ +*:not(html) { + -webkit-transform: translate3d(0, 0, 0); + -webkit-perspective: 1000; +} + + +/* SCROLL BAR STYLING */ + +/* width */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +/* Track */ +::-webkit-scrollbar-track { + border-radius: 2px; +} + +/* Handle */ +::-webkit-scrollbar-thumb { + /* background: #44444A; */ + background: rgba(255, 255, 255, 0.2); + border-radius: 10px; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: #6E6E78; +} .scrollbar-hidden::-webkit-scrollbar { -webkit-appearance: none; width: 0; height: 0; } + /* COMMAND PALETTE */ .result-section-header { diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index ed059aab5..bf0096aed 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,6 +1,6 @@ @@ -39,37 +39,63 @@ And the following optional props: type="button" on:click > - {label} + {label} diff --git a/src/routes/projects/[projectId]/commit/+page.svelte b/src/routes/projects/[projectId]/commit/+page.svelte index f4adca2d7..8cba61583 100644 --- a/src/routes/projects/[projectId]/commit/+page.svelte +++ b/src/routes/projects/[projectId]/commit/+page.svelte @@ -200,20 +200,23 @@ all none -