Skip to content

Commit e66b85f

Browse files
zubeydecivelekzzacharo
authored andcommitted
fix(ui): wrap long related identifiers
1 parent e9e1625 commit e66b85f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

  • cds/modules

cds/modules/records/static/templates/cds_records/video/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ <h4>{{translation.title.title}}</h4>
314314
<span ng-if="ri.resource_type">
315315
{{ ri.resource_type | format_relation_resource_type }}:
316316
</span>
317-
<a ng-href="{{ ri.url }}" target="_blank">{{ ri.identifier }}</a>
317+
<a class="cds-text-break" ng-href="{{ ri.url }}" target="_blank">{{ ri.identifier }}</a>
318318
({{ ri.scheme }})
319319
</li>
320320
</ul>

cds/modules/theme/assets/bootstrap3/scss/cds/cds.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ a.cds-anchor:hover{
255255
display: block;
256256
}
257257

258+
.cds-text-break {
259+
display: inline-block;
260+
max-width: 100%;
261+
word-break: break-word;
262+
overflow-wrap: anywhere;
263+
}
264+
258265
// Tags
259266

260267
.cds-tags ul {

0 commit comments

Comments
 (0)