mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
Merge pull request #1864 from umap-project/caption-title
fix: caption title rendering on multiple lines
This commit is contained in:
commit
ac17037b76
3 changed files with 10 additions and 2 deletions
|
@ -16,6 +16,14 @@
|
||||||
.icon + span {
|
.icon + span {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
.icon-block {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.icon-block + span {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
.dark .icon-16 {
|
.dark .icon-16 {
|
||||||
background-image: url('../img/16-white.svg');
|
background-image: url('../img/16-white.svg');
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
background-color: #353c3e;
|
background-color: #353c3e;
|
||||||
}
|
}
|
||||||
.panel h3 {
|
.panel h3 {
|
||||||
line-height: 3;
|
line-height: 120%;
|
||||||
}
|
}
|
||||||
@media all and (orientation:landscape) {
|
@media all and (orientation:landscape) {
|
||||||
.panel {
|
.panel {
|
||||||
|
|
|
@ -18,7 +18,7 @@ export default class Caption {
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
const container = DomUtil.create('div', 'umap-caption')
|
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)
|
this.map.permissions.addOwnerLink('h5', container)
|
||||||
if (this.map.options.description) {
|
if (this.map.options.description) {
|
||||||
const description = DomUtil.element({
|
const description = DomUtil.element({
|
||||||
|
|
Loading…
Reference in a new issue