Skip to content

Commit

Permalink
Merge pull request #574 from will-moore/name_word_wrap
Browse files Browse the repository at this point in the history
Fix word wrap for names
  • Loading branch information
knabar authored Sep 10, 2024
2 parents 2b30141 + ad846e5 commit db10592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions omeroweb/webclient/static/webclient/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,15 @@
width:85%;
display:inline-block;
padding:5px 0;
word-wrap: break-word;
}

.data_heading span {
display:inline-block;
line-height:1.2em;
float:left;
overflow:hidden;
width: 100%;
}

.data_heading img {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="data_heading" id="{{ manager.obj_type }}name-{{ manager.obj_id }}">
<div>
<h1>
<span id="{{ manager.obj_type }}name-{{ manager.obj_id }}-name" style="word-wrap: break-word;">
<span id="{{ manager.obj_type }}name-{{ manager.obj_id }}-name">
{{ nameText|escape }}
</span>
</h1>
Expand All @@ -37,7 +37,7 @@ <h1>
</div>
{% else %}
<div class="data_heading">
<h1 style="word-wrap: break-word;">{{ nameText|escape }}</h1>
<h1>{{ nameText|escape }}</h1>
</div>
{% endif %}

Expand Down

0 comments on commit db10592

Please sign in to comment.