Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 750a28e

Browse files
committed
Break words in modal title and path to handle long text
1 parent 88b1644 commit 750a28e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

public/css/mango.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#scan-status {
2121
cursor: auto;
2222
}
23-
.uk-card-title {
23+
.break-word {
2424
word-wrap: break-word;
2525
}
2626
.uk-logo > img {

src/views/index.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<%- if t.entries.size > 0 -%>
3737
<div class="uk-card-badge uk-label"><%= (percentage[i] * 100).round(1) %>%</div>
3838
<%- end -%>
39-
<h3 class="uk-card-title"><%= t.title %></h3>
39+
<h3 class="uk-card-title break-word"><%= t.title %></h3>
4040
<p><%= t.size %> entries</p>
4141
</div>
4242
</div>

src/views/title.ecr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<%- if t.entries.size > 0 -%>
4646
<div class="uk-card-badge uk-label"><%= (titles_percentage[i] * 100).round(1) %>%</div>
4747
<%- end -%>
48-
<h3 class="uk-card-title"><%= t.title %></h3>
48+
<h3 class="uk-card-title break-word"><%= t.title %></h3>
4949
<p><%= t.size %> entries</p>
5050
</div>
5151
</div>
@@ -73,8 +73,8 @@
7373
<div class="uk-modal-dialog uk-margin-auto-vertical">
7474
<button class="uk-modal-close-default" type="button" uk-close></button>
7575
<div class="uk-modal-header">
76-
<h3 class="uk-modal-title" id="modal-title"></h3>
77-
<p class="uk-text-meta uk-margin-remove-bottom" id="path-text"></p>
76+
<h3 class="uk-modal-title break-word" id="modal-title"></h3>
77+
<p class="uk-text-meta uk-margin-remove-bottom break-word" id="path-text"></p>
7878
<p class="uk-text-meta uk-margin-remove-top" id="pages-text"></p>
7979
</div>
8080
<div class="uk-modal-body">

0 commit comments

Comments
 (0)