Skip to content

Commit ab258db

Browse files
committed
Updated source record layout to show one source per line
1 parent 8640529 commit ab258db

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

openlibrary/templates/type/edition/view.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,7 @@ <h3>$_("Source records")</h3>
472472
<ul class="source-records">
473473
$ get_source_html = render_template("history/sources").get_source_html
474474
$for source_record in source_records:
475-
$ source_html = get_source_html(source_record)
476-
$ record = [s+'</a>' for s in source_html.split('</a>') if s]
477-
$for link in record:
478-
<li>$:link</li>
475+
<li>$:get_source_html(source_record)</li>
479476
</ul>
480477
</div>
481478
$if work:

static/css/components/work.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ div.editionAbout {
5959
}
6060
}
6161

62-
.source-records {
62+
.source-records li {
6363
display: flex;
6464
flex-wrap: wrap;
6565
gap: 12px;
6666
font-size: 12px;
67+
margin-bottom: 12px;
6768
}
6869

6970
.work-description {

0 commit comments

Comments
 (0)