From fa5680192f8cb2e196ece7ceec64f7bcf08415af Mon Sep 17 00:00:00 2001 From: Tolu Date: Wed, 10 Apr 2024 14:02:58 -0400 Subject: [PATCH] Optimizing for larger screens --- .../components/bar-chart/carousel-header.css | 1 + .../compare-page/compare-attr-list.js | 6 +++--- .../compare-page/compare-percentiles.js | 3 ++- .../compare-page/compare-player-section.css | 7 +++---- prem-data/src/components/taskbar/taskbar.js | 2 +- prem-data/src/pages/page-style.css | 4 ++-- prem-data/src/pages/player-page.js | 18 ------------------ prem-data/src/styles.css | 4 ++-- 8 files changed, 14 insertions(+), 31 deletions(-) diff --git a/prem-data/src/components/bar-chart/carousel-header.css b/prem-data/src/components/bar-chart/carousel-header.css index f89959a..3dcd394 100644 --- a/prem-data/src/components/bar-chart/carousel-header.css +++ b/prem-data/src/components/bar-chart/carousel-header.css @@ -13,6 +13,7 @@ padding: 0; cursor: pointer; transition: 0.3s; + font-size: 1em; } .selected { diff --git a/prem-data/src/components/compare-page/compare-attr-list.js b/prem-data/src/components/compare-page/compare-attr-list.js index dcc8b23..53e743c 100644 --- a/prem-data/src/components/compare-page/compare-attr-list.js +++ b/prem-data/src/components/compare-page/compare-attr-list.js @@ -13,9 +13,9 @@ export const CompareAttrList = ({ options, onCheckboxChange }) => { }; return ( -
+
{options.map((option) => ( -
+
handleCheckboxChange(option)} className="checkbox-input" /> - +
))}
diff --git a/prem-data/src/components/compare-page/compare-percentiles.js b/prem-data/src/components/compare-page/compare-percentiles.js index cfea32e..02edc2d 100644 --- a/prem-data/src/components/compare-page/compare-percentiles.js +++ b/prem-data/src/components/compare-page/compare-percentiles.js @@ -16,7 +16,8 @@ function ComparePercentiles({player, setSeasonPlayer1, seasonPlayer1, setPercent
{player.listOfSeasons.map((seasons, index) => ( -
{ setSeasonPlayer1(index); diff --git a/prem-data/src/components/compare-page/compare-player-section.css b/prem-data/src/components/compare-page/compare-player-section.css index 3628c48..8b19f2a 100644 --- a/prem-data/src/components/compare-page/compare-player-section.css +++ b/prem-data/src/components/compare-page/compare-player-section.css @@ -254,10 +254,6 @@ input:checked + .slider:before { .select-menu{ font-size: 0.8em; } - .season-option{ - font-size: 0.8em; - color: red; - } .options-list{ font-size: 1em; } @@ -267,4 +263,7 @@ input:checked + .slider:before { .select{ font-size: 1.2em; } + .season-option{ + font-size: 16px; + } } \ No newline at end of file diff --git a/prem-data/src/components/taskbar/taskbar.js b/prem-data/src/components/taskbar/taskbar.js index 4d06bae..34094d3 100644 --- a/prem-data/src/components/taskbar/taskbar.js +++ b/prem-data/src/components/taskbar/taskbar.js @@ -6,7 +6,7 @@ function Taskbar() { return(