From c167eef29c937b5a8ff1d0d149e9af653773a713 Mon Sep 17 00:00:00 2001 From: Ian Donahue Date: Tue, 28 Mar 2023 11:40:04 +0200 Subject: [PATCH] Refactor scrollbar CSS and improve form layout This commit refactors the CSS for the scrollbar by removing unnecessary margin and padding properties, and changing the background color to increase contrast for better usability. The form layout in the commit page of the Svelte app is also optimized by adjusting the input and textarea elements' styling and alignment to improve overall readability and consistency. Changes: - Update scrollbar width and height properties - Change scrollbar background color to rgba(255, 255, 255, 0.2) - Remove padding and width properties from ::-webkit-scrollbar-thumb - Adjust layout of input and textarea elements in commit page - Improve alignment and truncation of file paths in commit file list --- src/app.postcss | 8 +++----- src/routes/projects/[projectId]/commit/+page.svelte | 13 +++++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/app.postcss b/src/app.postcss index ab243c70b..9d7d59b14 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -15,8 +15,7 @@ /* width */ ::-webkit-scrollbar { width: 8px; - margin-right: 2px; - padding-right: 2px; + height: 8px; } /* Track */ @@ -26,10 +25,9 @@ /* Handle */ ::-webkit-scrollbar-thumb { - background: #44444A; + /* background: #44444A; */ + background: rgba(255, 255, 255, 0.2); border-radius: 10px; - padding-right: 2px; - width: 8px; } /* Handle on hover */ diff --git a/src/routes/projects/[projectId]/commit/+page.svelte b/src/routes/projects/[projectId]/commit/+page.svelte index f4adca2d7..191aa6e7f 100644 --- a/src/routes/projects/[projectId]/commit/+page.svelte +++ b/src/routes/projects/[projectId]/commit/+page.svelte @@ -200,20 +200,21 @@ all none -