Skip to content

Commit ad0a0d6

Browse files
committed
Added margins when the tag list is hidden
1 parent b5690dd commit ad0a0d6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/features/Search/Search.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
font-size: 0.72rem;
6060
}
6161

62+
.space {
63+
margin-bottom: 3rem;
64+
@media (max-width: 600px) {
65+
margin-bottom: 1rem;
66+
}
67+
}
68+
6269
.noResults {
6370
text-align: center;
6471
margin-top: 5rem;

src/features/Search/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function Search({ tags }: SearchProps) {
5656
setSelectedTagIds((prev) =>
5757
prev.includes(tag.id)
5858
? prev.filter((id) => id !== tag.id)
59-
: [...prev, tag.id]
59+
: [...prev, tag.id],
6060
);
6161
};
6262

@@ -130,7 +130,7 @@ export function Search({ tags }: SearchProps) {
130130
selectedTagIds={selectedTagIds}
131131
/>
132132
{SelectionMarkup}
133-
<div style={{ marginBottom: "3rem" }} />
133+
<div className={styles.space} />
134134
{projects.length === 0 ? <>{NoResultsMarkup}</> : <>{ProjectsMarkup}</>}
135135
</div>
136136
</div>

0 commit comments

Comments
 (0)