mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-24 23:30:37 -05:00
Teambuilder: Properly truncate long ability names
This commit is contained in:
parent
4428a1444c
commit
a4dd41b508
|
|
@ -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}`}
|
||||
>
|
||||
<span class="col namecol">{id ? this.renderName(ability.name, matchStart, matchEnd) : <i>(no ability)</i>}</span>
|
||||
<span class="col abilitynamecol">{id ? this.renderName(ability.name, matchStart, matchEnd) : <i>(no ability)</i>}</span>
|
||||
|
||||
{errorMessage}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user