Skip to content

Commit

Permalink
feat: Space out components on detour list page
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson committed Sep 4, 2024
1 parent 876d529 commit c60cf3a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions assets/css/_detour_list_page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.c-detour-list-page {
.c-detour-list-page__button {
margin-bottom: 2.25rem;
}
}
1 change: 1 addition & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $vpp-location-padding: 1rem;
@import "crowding";
@import "cutout_overlay";
@import "data_status_banner";
@import "detour_list_page";
@import "detours/detour_map";
@import "detours/detour_modal";
@import "detours/detour_table";
Expand Down
7 changes: 5 additions & 2 deletions assets/src/components/detourListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ export const DetourListPage = () => {
const [showDetourModal, setShowDetourModal] = useState(false)

return (
<div className="h-100 overflow-y-auto">
<div className="c-detour-list-page h-100 overflow-y-auto p-4 bg-white">
{userInTestGroup(TestGroups.DetoursPilot) && (
<Button className="icon-link" onClick={() => setShowDetourModal(true)}>
<Button
className="c-detour-list-page__button icon-link fw-light px-3 py-2"
onClick={() => setShowDetourModal(true)}
>
<PlusSquare />
Add detour
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`DetourListPage renders detour list page with dummy data 1`] = `
<div
className="h-100 overflow-y-auto"
className="c-detour-list-page h-100 overflow-y-auto p-4 bg-white"
>
<table
className="c-detours-table table table-hover"
Expand Down

0 comments on commit c60cf3a

Please sign in to comment.