Skip to content

Commit

Permalink
Minor styling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Dec 19, 2024
1 parent 7332f2d commit b3a9c2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/admin/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function ListingPage({ params }) {
return (
<Box
px={{
base: '4',
base: 0,
md: '10',
}}
py={4}
Expand Down
4 changes: 2 additions & 2 deletions app/admin/new-listing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export default function NewListingPage() {
return (
<Box
px={{
base: '4',
base: 0,
md: '10',
}}
py={4}
maxWidth="3xl"
maxWidth="5xl"
mx="auto"
>
<Button
Expand Down
2 changes: 1 addition & 1 deletion components/admin/listing-form/ListingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const ListingForm = ({ categories, listing, handleSubmit }: Props) => {
{(props) => {
return (
<Form encType="multipart/form-data">
<chakra.div p={{ sm: 6 }} px={4} py="1rem">
<chakra.div p={{ sm: 6 }} px="1rem" py="1rem">
<chakra.div mb="0.5rem">
<Field name="title" validate={fieldRequiredValidator}>
{({ field, form }: FieldProps) => (
Expand Down
26 changes: 14 additions & 12 deletions components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,20 @@ const Header = ({
value={selectedCategories}
/>
</InputGroup>
<InputGroup>
<Select
isMulti
isSearchable={false}
menuPortalTarget={document.body}
onChange={handleTagSelection}
options={tags}
placeholder="Filter by tag"
styles={customMultiSelectStyles}
value={selectedTags}
/>
</InputGroup>
{tags.length > 0 && (
<InputGroup>
<Select
isMulti
isSearchable={false}
menuPortalTarget={document.body}
onChange={handleTagSelection}
options={tags}
placeholder="Filter by tag"
styles={customMultiSelectStyles}
value={selectedTags}
/>
</InputGroup>
)}
</VStack>
</chakra.div>
</Flex>
Expand Down

0 comments on commit b3a9c2a

Please sign in to comment.