Skip to content

Commit

Permalink
minor styling
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Sep 11, 2023
1 parent 8f7f7cf commit 2cf41c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
11 changes: 6 additions & 5 deletions app/layout/project/sidebar/project/scenarios-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { ScrollArea } from 'components/scroll-area';
import HelpBeacon from 'layout/help/beacon';
import NoResults from 'layout/project/sidebar/project/inventory-panel/components/no-results';
import ScenarioToolbar from 'layout/project/sidebar/project/scenarios-list/toolbar';
import Section from 'layout/section';
import { cn } from 'utils/cn';

import bgScenariosDashboard from 'images/new-layout/bg-scenarios-dashboard.png';
Expand Down Expand Up @@ -350,12 +351,12 @@ export const ScenariosList: React.FC = () => {
)}

{(hasScenarios || search || hasFilters) && (
<div className="flex w-full flex-shrink-0 flex-col items-center justify-center rounded-[20px] bg-gray-700 p-6">
<Section className="flex w-full flex-col items-center justify-center space-y-5">
{hasScenarios && (
<Button
theme="primary-alt"
size="base"
className="mb-5 flex w-full overflow-hidden uppercase"
className="flex w-full overflow-hidden uppercase"
disabled={solutionsReportLoader}
onClick={onDownloadSolutionsSummary}
>
Expand All @@ -364,20 +365,20 @@ export const ScenariosList: React.FC = () => {
className="absolute bottom-0 left-0 right-0 top-0 z-40 flex h-full w-full items-center justify-center bg-gray-800 bg-opacity-90"
iconClassName="w-10 h-10 text-primary-500"
/>
{scenariosData.length === 1 ? 'Export scenario data' : 'Export scenarios data'}
{`Export scenario${scenariosData.length > 1 ? 's' : ''} data`}
</Button>
)}
<Button
theme="primary"
size="base"
className="!px-5"
className="px-5"
disabled={!editable}
onClick={() => setModal(true)}
>
<span className="mr-5">Create scenario</span>
<Icon icon={PLUS_SVG} className="h-4 w-4" />
</Button>
</div>
</Section>
)}
</div>

Expand Down
10 changes: 4 additions & 6 deletions app/layout/project/sidebar/scenario/solutions/overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@ import { useRouter } from 'next/router';
import { getScenarioEditSlice } from 'store/slices/scenarios/edit';

import { motion } from 'framer-motion';
import { HiOutlineTable } from 'react-icons/hi';

import { useProject } from 'hooks/projects';
import { useScenario, useDownloadScenarioReport } from 'hooks/scenarios';
import { useSolution, useBestSolution } from 'hooks/solutions';
import { useToasts } from 'hooks/toast';

import Button from 'components/button';
import Icon from 'components/icon';
import Loading from 'components/loading';
import Modal from 'components/modal';
import Section from 'layout/section';
import SolutionSelected from 'layout/solutions/selected';
import { formatFileName } from 'utils/units';

import TABLE_SVG from 'svgs/ui/table.svg?sprite';

import SolutionsTableForm from './table/table-form/component';

export const SolutionsOverview = (): JSX.Element => {
Expand Down Expand Up @@ -179,7 +177,7 @@ export const SolutionsOverview = (): JSX.Element => {
<Button
theme="primary-alt"
size="base"
className="mb-4 flex h-12 overflow-hidden uppercase"
className="relative overflow-hidden uppercase"
disabled={PDFLoader}
onClick={onDownloadReport}
>
Expand All @@ -193,11 +191,11 @@ export const SolutionsOverview = (): JSX.Element => {
<Button
theme="primary"
size="base"
className="mb-4 flex h-12 uppercase"
className="relative uppercase"
onClick={() => setShowTable(true)}
>
View solutions table
<Icon icon={TABLE_SVG} className="absolute right-8 h-4 w-4" />
<HiOutlineTable className="absolute right-8 h-6 w-6" />
</Button>

<Modal
Expand Down
3 changes: 0 additions & 3 deletions app/svgs/ui/table.svg

This file was deleted.

0 comments on commit 2cf41c9

Please sign in to comment.