feat: Centred the filtering bar in the main page.
Co-Authored By: Caspar Asaam <caspar@dyn3159-95.wlan.ic.ac.uk>
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
</Navbar>
|
</Navbar>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
<div class="tag-filter-container">
|
||||||
<TagFilter
|
<TagFilter
|
||||||
{selectedTags}
|
{selectedTags}
|
||||||
{tagFilter}
|
{tagFilter}
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
{deleteTag}
|
{deleteTag}
|
||||||
{addTag}
|
{addTag}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{#each filteredStudySpaces() as studySpace (studySpace.id)}
|
{#each filteredStudySpaces() as studySpace (studySpace.id)}
|
||||||
{@const imgUrl =
|
{@const imgUrl =
|
||||||
@@ -100,6 +102,13 @@
|
|||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag-filter-container {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 20rem) {
|
@media (max-width: 20rem) {
|
||||||
main {
|
main {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|||||||
Reference in New Issue
Block a user