Skip to content

Commit

Permalink
Merge pull request #91 from mlibrary/LIBSEARCH-876-update-display-of-…
Browse files Browse the repository at this point in the history
…long-subject-lists-in-subject-browse

[LIBSEARCH-876] Update display of long subject lists in Subject Browse
  • Loading branch information
erinesullivan authored May 8, 2023
2 parents 7451764 + 24befdb commit 02f0050
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/styles/cross-references.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ol.cross-references-list {
color: var(--search-neutral-500);
list-style: none;
margin: 0;
margin: 0 0 0 1rem;
padding: 0;
}

Expand Down
20 changes: 20 additions & 0 deletions css/styles/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,23 @@ table.browse-table {
display: inline-block;
font-weight: var(--semibold);
}

/* 3.2.2 - Records */

.browse-table.subject-browse tbody td.column-main .record-text {
display: block;
}

.browse-table.subject-browse tbody td.column-records {
display: none;
}

@media only screen and (min-width: 720px) {
.browse-table.subject-browse tbody td.column-main .record-text {
display: none;
}

.browse-table.subject-browse tbody td.column-records {
display: table-cell;
}
}
5 changes: 4 additions & 1 deletion views/subject.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<% if result.heading_link? %>
<%= erb :'components/external_link', locals: { url: result.heading_link, text: 'About this subject', classes: 'vernacular pipe' } %>
<% end %>
<span class="record-text">
<%= result.record_text %>
</span>
</dd>
<% if result.has_cross_references? %>
<% result.cross_references.to_h.keys.each do | cr | %>
Expand Down Expand Up @@ -75,7 +78,7 @@
<% end %>
</dl>
</td>
<td>
<td class="column-records">
<%= result.record_text %>
</td>
</tr>
Expand Down

0 comments on commit 02f0050

Please sign in to comment.