diff --git a/components/PerformanceListSelector/index.tsx b/components/PerformanceListSelector/index.tsx index faa9080f..e1d806e4 100644 --- a/components/PerformanceListSelector/index.tsx +++ b/components/PerformanceListSelector/index.tsx @@ -57,30 +57,72 @@ const PerformanceListSelector: React.FC = ({ }; if (isValidating) { - return ; + return ( + + ); } return ( - <> + - + Transcoding {availPipelines?.pipelines?.length === 0 ? ( @@ -89,49 +131,13 @@ const PerformanceListSelector: React.FC = ({ ) : ( <> - + ---------------- - + AI Pipelines - + ---------------- {availPipelines?.pipelines?.map((p, pindex) => @@ -151,10 +157,15 @@ const PerformanceListSelector: React.FC = ({ - + ); }; diff --git a/pages/leaderboard.tsx b/pages/leaderboard.tsx index ee0c8b46..24803d6c 100644 --- a/pages/leaderboard.tsx +++ b/pages/leaderboard.tsx @@ -133,35 +133,84 @@ const LeaderboardPage = ({ hadError, orchestratorIds }: PageProps) => { }, }} > - Region: - { - setRegion(e.target.value as Region["id"]); - }} + - {availableRegions.map((region) => { - return ( - - {region.name} - - ); - })} - + Region: + + > + { + setRegion(e.target.value as Region["id"]); + }} + value={region} + css={{ + width: "100%", + paddingTop: "$2", + paddingBottom: "$2", + paddingLeft: "$3", + paddingRight: "$6", + border: "none", + borderRadius: "$2", + backgroundColor: "$panel", + color: "$hiContrast", + fontFamily: "$body", + fontSize: "$2", + fontWeight: 500, + appearance: "none", + cursor: "pointer", + transition: "all 0.2s", + "&:hover": { + backgroundColor: "$neutral2", + }, + "&:focus": { + outline: "none", + borderColor: "$primary9", + boxShadow: "0 0 0 1px $colors$primary9", + }, + "& option": { + backgroundColor: "$panel", + color: "$hiContrast", + fontFamily: "$body", + }, + "& option:hover, & option:focus": { + backgroundColor: "rgba(0,235,136,.1)", + color: "$primary", + }, + }} + > + {availableRegions.map((region) => { + return ( + + {region.name} + + ); + })} + + + { }, }} > - Type: + + Type: +