forked from MapComplete/MapComplete
UX: fix #2089, improve background selection hotkeys and add emoji to indicate categories of background layers
This commit is contained in:
parent
5b67ccc9e2
commit
2dc386fd9a
15 changed files with 600 additions and 525 deletions
|
|
@ -30,6 +30,12 @@
|
|||
| "large-height"
|
||||
| string
|
||||
}
|
||||
|
||||
const emojiHeights = {
|
||||
"small":"2rem",
|
||||
"medium":"3rem",
|
||||
"large":"5rem"
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if mapping.icon !== undefined}
|
||||
|
|
@ -42,6 +48,9 @@
|
|||
}-width`,
|
||||
"shrink-0"
|
||||
)}
|
||||
|
||||
emojiHeight={ emojiHeights[mapping.iconClass] ?? "2rem"}
|
||||
|
||||
clss={`mapping-icon-${mapping.iconClass ?? "small"}`}
|
||||
/>
|
||||
<SpecialTranslation t={mapping.then} {tags} {state} {layer} feature={selectedElement} {clss} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue