Skip to content

Commit 015e427

Browse files
jess-hocdrini
andauthored
Increase Source Records links' touch target spacing (#11307)
Co-authored-by: Drini Cami <cdrini@gmail.com>
1 parent 276a73c commit 015e427

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

openlibrary/templates/type/edition/view.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,12 @@ <h3>$_("Work Identifiers")</h3>
468468
$ source_records = edition.get('source_records')
469469
$if source_records:
470470
<div class="section">
471-
<h3>$_("Source records")</h3>
472-
$ get_source_html = render_template("history/sources").get_source_html
473-
$:'<br/>'.join([get_source_html(s) for s in source_records])
471+
<h3>$_("Source records")</h3>
472+
<ul class="source-records">
473+
$ get_source_html = render_template("history/sources").get_source_html
474+
$for source_record in source_records:
475+
<li>$:get_source_html(source_record)</li>
476+
</ul>
474477
</div>
475478
$if work:
476479
$if not work.excerpts and work.first_sentence:

static/css/components/work.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ div.editionAbout {
5959
}
6060
}
6161

62+
.source-records li a {
63+
font-size: @font-size-label-medium;
64+
padding: 6px 0;
65+
}
66+
6267
.work-description {
6368
pre {
6469
overflow: auto;

0 commit comments

Comments
 (0)