Skip to content

Commit

Permalink
added respnsive flexbox to filter options and width limit for filter …
Browse files Browse the repository at this point in the history
…options at larger sizes
  • Loading branch information
crabinak committed Feb 27, 2025
1 parent b3e9ec0 commit 05346d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 8 additions & 2 deletions beam/src/components/BeamFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,18 @@ const getTotalHeight = (el: HTMLDivElement) => {
}
.beam_filters-options {
display: grid;
grid-template-columns: repeat(2, 1fr);
/* display: grid;
grid-template-columns: repeat(2, 1fr); */
display: flex;
flex-direction: row;
column-gap: 1rem;
background: white;
box-sizing: border-box;
padding: 0 1rem;
margin: 1rem 0;
@media (max-width: 500px) {
flex-direction: column;
}
}
</style>
10 changes: 10 additions & 0 deletions beam/src/components/BeamFilterOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,14 @@ svg {
background: var(--sc-row-border-color);
}
}
.beam_filter-container {
flex-grow: 1;
max-width: 300px;
width: 50%;
@media (max-width: 500px) {
width: 100%;
max-width: 100%;
}
}
</style>

0 comments on commit 05346d0

Please sign in to comment.