From 17601c4deaf836b92247d98c0474659789ff343c Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 31 Mar 2023 21:31:58 -0700 Subject: [PATCH] Style scrollbars. --- components/input/SettingsButton.js | 14 ++++---- components/layout/AppLayout.module.css | 4 +++ components/metrics/DataTable.js | 6 ++-- components/metrics/MetricsTable.module.css | 1 + components/metrics/PagesTable.js | 2 +- components/pages/websites/WebsiteMenuView.js | 3 +- .../pages/websites/WebsiteMenuView.module.css | 8 +++-- styles/index.css | 33 +++++++++++++++++++ 8 files changed, 56 insertions(+), 15 deletions(-) diff --git a/components/input/SettingsButton.js b/components/input/SettingsButton.js index 37e785da..84a5d675 100644 --- a/components/input/SettingsButton.js +++ b/components/input/SettingsButton.js @@ -1,4 +1,4 @@ -import { Button, Icon, Tooltip, PopupTrigger, Popup, Form, FormRow } from 'react-basics'; +import { Button, Icon, PopupTrigger, Popup, Form, FormRow } from 'react-basics'; import TimezoneSetting from 'components/pages/settings/profile/TimezoneSetting'; import DateRangeSetting from 'components/pages/settings/profile/DateRangeSetting'; import Icons from 'components/icons'; @@ -10,13 +10,11 @@ export default function SettingsButton() { return ( - - - + -
+
{data?.length === 0 && } {virtualize && data.length > 0 ? ( - + {Row} ) : ( diff --git a/components/metrics/MetricsTable.module.css b/components/metrics/MetricsTable.module.css index ab57932b..fc3bc51e 100644 --- a/components/metrics/MetricsTable.module.css +++ b/components/metrics/MetricsTable.module.css @@ -4,6 +4,7 @@ height: 100%; display: flex; flex-direction: column; + flex: 1; } .footer { diff --git a/components/metrics/PagesTable.js b/components/metrics/PagesTable.js index fda766f1..fd8fd8b0 100644 --- a/components/metrics/PagesTable.js +++ b/components/metrics/PagesTable.js @@ -35,12 +35,12 @@ export default function PagesTable({ websiteId, showFilters, ...props }) { <> {showFilters && } ); diff --git a/components/pages/websites/WebsiteMenuView.js b/components/pages/websites/WebsiteMenuView.js index 92ddfc7b..000a46e5 100644 --- a/components/pages/websites/WebsiteMenuView.js +++ b/components/pages/websites/WebsiteMenuView.js @@ -108,11 +108,10 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) { - +