mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: honour carriage returns in permanent credits (#2206)
fix #2197 The fix here is to add the `text` class, the rest is cleaning.
This commit is contained in:
commit
6b37e4792f
1 changed files with 3 additions and 7 deletions
|
@ -453,17 +453,13 @@ U.PermanentCreditsControl = L.Control.extend({
|
|||
},
|
||||
|
||||
onAdd: function () {
|
||||
const paragraphContainer = L.DomUtil.create(
|
||||
this.paragraphContainer = L.DomUtil.create(
|
||||
'div',
|
||||
'umap-permanent-credits-container'
|
||||
'umap-permanent-credits-container text'
|
||||
)
|
||||
const creditsParagraph = L.DomUtil.create('p', '', paragraphContainer)
|
||||
|
||||
this.paragraphContainer = paragraphContainer
|
||||
this.setCredits()
|
||||
this.setBackground()
|
||||
|
||||
return paragraphContainer
|
||||
return this.paragraphContainer
|
||||
},
|
||||
|
||||
setCredits: function () {
|
||||
|
|
Loading…
Reference in a new issue