From a4dd41b5089dda37eb4be99932dbd0420cdcf8e8 Mon Sep 17 00:00:00 2001 From: Ethan Strader Date: Mon, 2 Feb 2026 13:23:25 -0500 Subject: [PATCH] Teambuilder: Properly truncate long ability names --- play.pokemonshowdown.com/src/battle-searchresults.tsx | 2 +- play.pokemonshowdown.com/style/battle-search.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/battle-searchresults.tsx b/play.pokemonshowdown.com/src/battle-searchresults.tsx index c564a9362..387cdb7bd 100644 --- a/play.pokemonshowdown.com/src/battle-searchresults.tsx +++ b/play.pokemonshowdown.com/src/battle-searchresults.tsx @@ -199,7 +199,7 @@ export class PSSearchResults extends preact.Component<{ href={`${this.URL_ROOT}abilities/${id}`} class={id === this.abilityId ? 'cur' : ''} data-target="push" data-entry={`ability|${ability.name}`} > - {id ? this.renderName(ability.name, matchStart, matchEnd) : (no ability)} + {id ? this.renderName(ability.name, matchStart, matchEnd) : (no ability)} {errorMessage} diff --git a/play.pokemonshowdown.com/style/battle-search.css b/play.pokemonshowdown.com/style/battle-search.css index 34a924145..e19ff6ecc 100644 --- a/play.pokemonshowdown.com/style/battle-search.css +++ b/play.pokemonshowdown.com/style/battle-search.css @@ -171,6 +171,16 @@ color: #000000; font-size: 10pt; } +.dexlist .abilitynamecol { + padding-top: 6px; + height: 23px; + width: 152px; + color: #000000; + font-size: 10pt; + text-wrap: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} .dexlist .pokemonnamecol { padding-top: 6px; height: 23px;