Skip to content

Commit

Permalink
ammend type:image method from plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Oct 12, 2023
1 parent f175722 commit 3c1348e
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 175 deletions.
12 changes: 8 additions & 4 deletions lib/ui/locations/entries/_entries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
documents: cloudinary,
geometry,
html: textarea,
image: cloudinary,
images: cloudinary,
integer: numeric,
json,
Expand Down Expand Up @@ -67,13 +68,16 @@ function key(entry) {
}

function title(entry) {

const tooltipSpan = entry.tooltip ? mapp.utils.html`
<span
style="line-height: 1; margin-left: 0.4em;"
class="mobile-display-none mask-icon question-mark">${entry.tooltip}` : '';

return mapp.utils.html.node`
<div
class="label"
style=${entry.css_title}
title=${entry.tooltip}>${entry.title}
${entry.tooltip ? mapp.utils.html`
<span
style="line-height: 1; margin-left: 0.4em;"
class="mobile-display-none mask-icon question-mark">${entry.tooltip}`: ''}`
${tooltipSpan}`
}
Loading

0 comments on commit 3c1348e

Please sign in to comment.