fix: caption title rendering on multiple lines

fix #1853
This commit is contained in:
Yohan Boniface 2024-05-29 08:54:09 +02:00
parent 7f3149af08
commit fe74ffb008
3 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,14 @@
.icon + span {
margin-left: 10px;
}
.icon-block {
display: block;
float: left;
margin-right: 10px;
}
.icon-block + span {
margin-left: 0;
}
.dark .icon-16 {
background-image: url('../img/16-white.svg');
}

View file

@ -77,7 +77,7 @@
background-color: #353c3e;
}
.panel h3 {
line-height: 3;
line-height: 120%;
}
@media all and (orientation:landscape) {
.panel {

View file

@ -18,7 +18,7 @@ export default class Caption {
open() {
const container = DomUtil.create('div', 'umap-caption')
DomUtil.createTitle(container, this.map.options.name, 'icon-caption')
DomUtil.createTitle(container, this.map.options.name, 'icon-caption icon-block')
this.map.permissions.addOwnerLink('h5', container)
if (this.map.options.description) {
const description = DomUtil.element({