Explain emoji icon kludge

This commit is contained in:
Aaron Fenyes 2024-11-14 00:16:32 -08:00
parent 0c8022d78e
commit 2b083be998
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,10 @@ body {
}
/* KLUDGE */
/*
for convenience, we're using emoji as temporary icons for some buttons. these
buttons need to be displayed in an emoji font
*/
#add-remove > button.emoji {
font-family: 'Noto Emoji', sans-serif;
}

View File

@ -173,7 +173,7 @@ pub fn AddRemove() -> View {
}
) { "+" }
button(
class="emoji", /* KLUDGE */
class="emoji", /* KLUDGE */ // for convenience, we're using an emoji as a temporary icon for this button
disabled={
let state = use_context::<AppState>();
state.selection.with(|sel| sel.len() != 2)