Skip to content

Commit

Permalink
fix various elements that break page width
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamelers committed Jul 5, 2024
1 parent bdc7b5a commit d71945a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/scss/_admin-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
gap: $spacing-base/2;
align-items: center;
flex-wrap: wrap;
max-width: 100%;
}

#search-pair {
Expand Down
3 changes: 2 additions & 1 deletion app/assets/stylesheets/scss/_columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@

.c-columns__content, #page-content {
padding-left: 2px;
overflow-wrap: anywhere;

@include bp(screen3) {
flex: 0 1 90ch;
padding-right: 5ch;
overflow: visible;
}
}

Expand Down
8 changes: 6 additions & 2 deletions app/assets/stylesheets/scss/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,26 @@
margin-left: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;

form {
display: flex;
flex-direction: row;
width: 100%;
flex-wrap: wrap;

& > div {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 1ch;
}
}

.c-auto_complete {
width: 20rem;
margin-right: 10px;

.c-input__text.c-ac__input_with_button, .c-ac__input-button {
height: 45px;
}
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/scss/_select.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// ##### Select Content Object ##### //

select {
max-width: 100%;
}

.o-select {
margin: 0 0 20px;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/stash_engine/shared/_change_tenant.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="edit-tenant-form" hidden>
<p id="label_tenant_lookup">Select your Dryad member institution:</p>
<div class="t-login__choose">
<div class="c-institution__container">
<div class="c-institution__container" style="width: 100%">
<%= form_with(url: sso_path, method: :post, html: {style: 'justify-content: space-between;'}) do %>
<%= react_component('components/TenantForm', {tenants: tenant_select}) %>
<span style="flex-grow: 1"></span>
Expand Down

0 comments on commit d71945a

Please sign in to comment.