From d733a53ea6e3056b096961cee8de5e221b06202f Mon Sep 17 00:00:00 2001 From: rahulramesha <71900764+rahulramesha@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:12:00 +0530 Subject: [PATCH] fix: Add horizontal scroll bar to views (#2736) * add errors for duplicate labels * adding horizonatal scroll bar to views --------- Co-authored-by: rahulramesha --- .../issues/issue-layouts/kanban/roots/cycle-root.tsx | 2 +- .../issue-layouts/kanban/roots/module-root.tsx | 2 +- .../issue-layouts/kanban/roots/project-root.tsx | 2 +- .../issue-layouts/spreadsheet/spreadsheet-view.tsx | 2 +- web/styles/globals.css | 12 +++++++++++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/web/components/issues/issue-layouts/kanban/roots/cycle-root.tsx b/web/components/issues/issue-layouts/kanban/roots/cycle-root.tsx index 5ea4d3e82..fdcb430cc 100644 --- a/web/components/issues/issue-layouts/kanban/roots/cycle-root.tsx +++ b/web/components/issues/issue-layouts/kanban/roots/cycle-root.tsx @@ -117,7 +117,7 @@ export const CycleKanBanLayout: React.FC = observer(() => { ) : ( -
+
{currentKanBanView === "default" ? ( {
) : ( -
+
{currentKanBanView === "default" ? ( {
) : ( -
+
{currentKanBanView === "default" ? ( = observer((props) => {
{issues && issues.length > 0 ? ( <> diff --git a/web/styles/globals.css b/web/styles/globals.css index cde7993a1..8f7ebe624 100644 --- a/web/styles/globals.css +++ b/web/styles/globals.css @@ -53,6 +53,8 @@ --color-text-300: 82, 82, 82; /* tertiary text */ --color-text-400: 163, 163, 163; /* placeholder text */ + --color-scrollbar: 163, 163, 163; /* scrollbar thumb */ + --color-border-100: 245, 245, 245; /* subtle border= 1 */ --color-border-200: 229, 229, 229; /* subtle border- 2 */ --color-border-300: 212, 212, 212; /* strong border- 1 */ @@ -117,6 +119,8 @@ --color-text-300: 82, 82, 82; /* tertiary text */ --color-text-400: 163, 163, 163; /* placeholder text */ + --color-scrollbar: 163, 163, 163; /* scrollbar thumb */ + --color-border-100: 245, 245, 245; /* subtle border= 1 */ --color-border-200: 229, 229, 229; /* subtle border- 2 */ --color-border-300: 212, 212, 212; /* strong border- 1 */ @@ -129,6 +133,8 @@ --color-text-300: 58, 58, 58; /* tertiary text */ --color-text-400: 115, 115, 115; /* placeholder text */ + --color-scrollbar: 115, 115, 115; /* scrollbar thumb */ + --color-border-100: 34, 34, 34; /* subtle border= 1 */ --color-border-200: 38, 38, 38; /* subtle border- 2 */ --color-border-300: 46, 46, 46; /* strong border- 1 */ @@ -160,6 +166,8 @@ --color-text-300: 115, 115, 115; /* tertiary text */ --color-text-400: 82, 82, 82; /* placeholder text */ + --color-scrollbar: 82, 82, 82; /* scrollbar thumb */ + --color-border-100: 34, 34, 34; /* subtle border= 1 */ --color-border-200: 38, 38, 38; /* subtle border- 2 */ --color-border-300: 46, 46, 46; /* strong border- 1 */ @@ -172,6 +180,8 @@ --color-text-300: 212, 212, 212; /* tertiary text */ --color-text-400: 115, 115, 115; /* placeholder text */ + --color-scrollbar: 115, 115, 115; /* scrollbar thumb */ + --color-border-100: 245, 245, 245; /* subtle border= 1 */ --color-border-200: 229, 229, 229; /* subtle border- 2 */ --color-border-300: 212, 212, 212; /* strong border- 1 */ @@ -256,7 +266,7 @@ body { .horizontal-scroll-enable::-webkit-scrollbar-thumb { border-radius: 5px; - background-color: rgba(var(--color-background-80)); + background-color: rgba(var(--color-scrollbar)); } .vertical-scroll-enable::-webkit-scrollbar {