Skip to content

Commit

Permalink
Chore/fix edit nav bar styles (#1466)
Browse files Browse the repository at this point in the history
* fix: nav menu template styles

* fix: add spacing for legacy nav section

* chore: remove unused attributes

* chore: move flex into className
  • Loading branch information
alexanderleegs authored Sep 6, 2023
1 parent a728258 commit fc571d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/navbar/NavSection.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Box } from "@chakra-ui/react"
import { Button, IconButton } from "@opengovsg/design-system-react"
import PropTypes from "prop-types"
import { useState, useRef } from "react"
Expand Down Expand Up @@ -269,7 +270,7 @@ const NavSection = ({
</div>
)}
</Droppable>
<div className="d-flex justify-content-between mt-4">
<Box mt="2rem" mb="1rem">
<Select
ref={selectInputRef}
className="w-50"
Expand All @@ -278,14 +279,15 @@ const NavSection = ({
options={sectionCreationOptions}
/>
<Button
mt="1rem"
onClick={sectionCreationHandler}
isDisabled={!newSectionType}
variant="solid"
colorScheme="primary"
>
Create New Menu
</Button>
</div>
</Box>
<span className={elementStyles.info}>
{`Note: you can specify a folder ${
hasResourceRoom ? `or resource room ` : ``
Expand Down
3 changes: 2 additions & 1 deletion src/templates/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ const NavDropdownSection = ({ children, link }) => (

const TemplateNavBar = ({ links, collectionInfo, resources }) => (
<nav className="navbar is-transparent flex-fill">
<div className="bp-container">
<div className="bp-container is-flex">
<div className="bp-container is-fluid margin--none navbar-menu h-100">
<div className="navbar-start">
<div className="navbar-item sub-link" />
{links.map((link, linkIndex) => {
if (link.collection) {
return (
Expand Down

0 comments on commit fc571d1

Please sign in to comment.