Skip to content

Commit

Permalink
Merge pull request #98 from hathitrust/reflow-issues
Browse files Browse the repository at this point in the history
DEV-1175/#91: Reflow issues
  • Loading branch information
carylwyatt authored Aug 13, 2024
2 parents 422f1fa + 321a9cb commit 1ee66cf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
27 changes: 22 additions & 5 deletions src/js/components/AdvancedSearchForm/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
{#if idx > 0}
<fieldset class="mb-3">
<legend class="visually-hidden">Boolean operator for field {idx} and field {idx + 1}</legend>
<div class="d-flex gap-3 align-items-center justify-content-start">
<div class="d-flex gap-3 align-items-center justify-content-center justify-content-sm-start">
{#each booleanOptions as option, bidx}
<div class="form-check">
<input
Expand All @@ -513,9 +513,9 @@
</div>
</fieldset>
{/if}
<fieldset class="search-clause mb-3 border border-dark rounded">
<div class="d-flex">
<legend class="visually-hidden">Search Field {idx + 1}</legend>
<fieldset class="search-clause mb-3">
<legend class="visually-hidden">Search field {idx + 1}:</legend>
<div class="field-container d-flex search-field border border-dark rounded">
<div class="select-container border border-0 flex-grow-1">
<select
class="form-select rounded-0 rounded-start"
Expand Down Expand Up @@ -601,7 +601,7 @@
Publication Year must be between 0-9999.
</div>
{/if}
<div class="d-flex gap-3 mb-1">
<div class="d-flex gap-3 mb-1 flex-wrap">
{#each yopOptions as option, yidx}
<div class="form-check">
<input
Expand Down Expand Up @@ -727,4 +727,21 @@
margin-left: 0;
}
}
@media (max-width: 36rem) {
.field-container {
border:none !important;
}
.search-field {
flex-direction: column;
gap: 0.5rem;
}
.select-container select {
border: 1px solid var(--color-neutral-500) !important;
border-radius: 0.375rem !important;
}
.search-input .form-control {
border: 1px solid var(--color-neutral-500) !important;
border-radius: 0.375rem !important;
}
}
</style>
5 changes: 4 additions & 1 deletion src/js/components/CookieConsentBanner/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@
border-end-start-radius: 0;
background: var(--color-primary-200);
padding: 1.25rem 1rem;
max-height: 34rem;
// max-height: 34rem;
max-height: 80vh;
overflow-y: scroll;
.h2 {
font-size: 1.25rem;
line-height: 120%; /* 1.5rem */
Expand Down

0 comments on commit 1ee66cf

Please sign in to comment.