Skip to content

Commit

Permalink
Create a new scss class btn-default-wide to make the button span th…
Browse files Browse the repository at this point in the history
…e width of the container on mobile. Apply this style to the LoadMoreWidgetContainerView
  • Loading branch information
afwillia committed Jan 24, 2025
1 parent 908e027 commit e0d95d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
<bh:Div marginBottom="5" width="100%">
<bh:Div ui:field="container" />
<bh:ClearFix />
<b:Button ui:field="loadMoreButton" text="Show more results" />
<b:Button
ui:field="loadMoreButton"
text="Show more results"
addStyleNames="btn-default-wide"
/>
<w:LoadingSpinner
ui:field="loadMoreImage"
size="31px"
Expand Down
6 changes: 6 additions & 0 deletions src/main/webapp/sass/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ end sticky footer
color: $synapse-dark-text;
}

@media (max-width: 500px) {
.btn-default-wide {
width: 100%;
}
}

.btn {
@include border-radius(2px);
font-weight: bold;
Expand Down

0 comments on commit e0d95d0

Please sign in to comment.