Restore missing buttons in caption bar

Those button, being width: 100% and display: block were not displayed
AND were pushing out also the slideshow buttons.
This commit is contained in:
Yohan Boniface 2023-11-23 13:07:18 +01:00
parent 0a900bdd3b
commit 9781f6eb9c
3 changed files with 13 additions and 4 deletions

View file

@ -202,6 +202,8 @@ button.flat,
padding: 0; padding: 0;
text-align: left; text-align: left;
min-height: inherit; min-height: inherit;
width: initial;
display: initial;
text-decoration: underline; text-decoration: underline;
} }
.help-text, .helptext { .help-text, .helptext {

View file

@ -1744,16 +1744,16 @@ L.U.Map.include({
this.permissions.addOwnerLink('span', container) this.permissions.addOwnerLink('span', container)
if (this.options.captionMenus) { if (this.options.captionMenus) {
L.DomUtil.createButton( L.DomUtil.createButton(
'umap-about-link', 'umap-about-link flat',
container, container,
`${L._('About')}`, L._('About'),
this.displayCaption, this.displayCaption,
this this
) )
L.DomUtil.createButton( L.DomUtil.createButton(
'umap-open-browser-link', 'umap-open-browser-link flat',
container, container,
` | ${L._('Browse data')}`, L._('Browse data'),
this.openBrowser, this.openBrowser,
this this
) )

View file

@ -600,6 +600,13 @@ ul.photon-autocomplete {
.umap-main-edit-toolbox h3 { .umap-main-edit-toolbox h3 {
display: inline; display: inline;
} }
.umap-caption-bar button {
margin-left: 10px;
}
.umap-caption-bar button + button:before {
content: '|';
padding-right: 10px;
}
.umap-main-edit-toolbox .umap-user { .umap-main-edit-toolbox .umap-user {
color: #fff; color: #fff;
} }