From bb0d21950891c43ac4fbbcb0989a9ccebc981503 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 28 May 2024 17:16:41 -0700 Subject: [PATCH] Don't let action buttons wrap onto multiple lines in Item Getting Guide A funny table-layout bug, where the item "Portal to the Unknown" had a very long Owls listing ("Owls listing: Buyable - Magic Lens + Blank Grey Tome (NP)"), and so the table layout tried to give it more room by decreasing the width of the action cell and wrapping the "NC Trades" action button text onto multiple lines. The fix: don't allow that! The table layout will figure out how to handle this being disallowed, and give the actions cell an appropriate minimum width. --- app/assets/stylesheets/items/sources.sass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index 8213feb0..afe83b05 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -39,6 +39,11 @@ padding-left: 1em font-size: 85% + a, button + /* When item names get long, don't let the buttons wrap to give the + * item names more space. The names should wrap more instead! */ + text-wrap: nowrap + tbody tr &:hover, &:focus-within