Skip to content

Commit

Permalink
improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
EepyElvyra committed Jan 14, 2025
1 parent e6188b7 commit 9205b5d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
15 changes: 15 additions & 0 deletions src/components/SearchModal.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,18 @@
display: flex;
align-items: center
}

.vc-search-modal-header-text {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
margin-bottom: 8px;
}

.vc-search-modal-no-results-container {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
16 changes: 5 additions & 11 deletions src/components/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =
else throw new Error("Unknown type " + type);
}, [results, selectedDestinationKeys, handleToggleDestination]);
const navRef = useRef(null);
const nav = createNavigator(cl("search-modal"), navRef);
const nav = createNavigator(cl("nav"), navRef);

return navigatorWrapper({
navigator: nav,
Expand Down Expand Up @@ -684,20 +684,14 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =


return (
<ModalRoot {...modalProps} size={ModalSize.SMALL} className={cl("search-modal")}>
<ModalRoot {...modalProps} size={ModalSize.SMALL}>
<ModalHeader
className={cl("search-modal-header")}
className={cl("header")}
direction={Flex.Direction.VERTICAL}
align={Flex.Align.START}
justify={Flex.Justify.BETWEEN}
>
<div style={{
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
width: "100%",
marginBottom: "8px"
}}>
<div className={cl("header-text")}>
<div style={{ display: "flex", flexDirection: "column", gap: "4px" }}>
<Heading variant="heading-lg/semibold"
style={{ flexGrow: 1 }}>{"Search for " + searchTypeToText(searchType)}</Heading>
Expand Down Expand Up @@ -728,7 +722,7 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =
rowData={results}
handleToggleDestination={setSelectedCallback}
/> : <ModalContent className={cl("no-results")}>
<div style={{ display: "flex", alignItems: "center", justifyContent: "center", padding: "20px" }}>
<div className={cl("no-results-container")}>
<svg
width="48"
height="48"
Expand Down

0 comments on commit 9205b5d

Please sign in to comment.