Skip to content

Commit

Permalink
Merge pull request #1408 from lucasnetau/fix-854
Browse files Browse the repository at this point in the history
Fix GH-854 Show icon for custom controls on mobile phone screen sizes
  • Loading branch information
kevinchappell authored Sep 12, 2023
2 parents f5bcbe1 + 2c42831 commit 70ff193
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Controls {
if (set.icon) {
label = `<span class="control-icon">${set.icon}</span>${label}`
}
const inputSet = m('li', label, {
const inputSet = m('li', m('span', label), {
className: `input-set-control input-set-${i}`,
})
inputSet.dataset.type = name
Expand Down
11 changes: 10 additions & 1 deletion src/sass/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,17 @@
font-size: 30px;
}

& {
text-overflow: clip;
}

span {
display: none;
visibility: hidden;
span {
visibility: visible;
font-size: 30px;
width: auto !important;
}
}
}
}
Expand Down

0 comments on commit 70ff193

Please sign in to comment.