diff --git a/src/js/controls.js b/src/js/controls.js index d0be79abb..eb355806e 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -110,7 +110,7 @@ export default class Controls { if (set.icon) { label = `${set.icon}${label}` } - const inputSet = m('li', label, { + const inputSet = m('li', m('span', label), { className: `input-set-control input-set-${i}`, }) inputSet.dataset.type = name diff --git a/src/sass/_controls.scss b/src/sass/_controls.scss index 7dab8fe98..4ccb912d4 100644 --- a/src/sass/_controls.scss +++ b/src/sass/_controls.scss @@ -107,8 +107,17 @@ font-size: 30px; } + & { + text-overflow: clip; + } + span { - display: none; + visibility: hidden; + span { + visibility: visible; + font-size: 30px; + width: auto !important; + } } } }