summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-05-07 07:24:58 +0200
committerYorhel <git@yorhel.nl>2021-05-07 07:25:00 +0200
commit92ef4761c5212c579c093631576717614af3992b (patch)
treeded6911bfb6d73c9d19f819b01b1765a46dbf0e7 /elm
parentffa8c364e4dff414a6a0cdc8f25a3e89071258b8 (diff)
CharEdit: Fix glitchy table layouting when hovering trait spoiler
Fixes https://vndb.org/t2520.555
Diffstat (limited to 'elm')
-rw-r--r--elm/CharEdit.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/CharEdit.elm b/elm/CharEdit.elm
index aac02dc1..f652dddd 100644
--- a/elm/CharEdit.elm
+++ b/elm/CharEdit.elm
@@ -422,7 +422,7 @@ view model =
, a [ href "#", onMouseOver (TraitSel t.tid 1), onMouseOut (TraitSel "" 0), onClickD (TraitSpoil i 1), classList [("s1", spoil t == 1 )], title "Minor spoiler" ] []
, a [ href "#", onMouseOver (TraitSel t.tid 2), onMouseOut (TraitSel "" 0), onClickD (TraitSpoil i 2), classList [("s2", spoil t == 2 )], title "Major spoiler" ] []
]
- , td []
+ , td [ style "width" "150px" ]
[ case (t.tid == model.traitSelId, lookup model.traitSelSpl spoilOpts) of
(True, Just s) -> text s
_ -> a [ href "#", onClickD (TraitDel i)] [ text "remove" ]