hftf / coords

2 stars 1 forks source link

Do something about long screen labels #64

Closed hftf closed 10 years ago

hftf commented 10 years ago
Array.prototype.slice.
call(document.querySelectorAll('.menu-heading h3 label > span'), 0).
sort(function(a,b) {return (b.offsetWidth - a.offsetWidth)
                        || (b.innerText.length - a.innerText.length)
                        || (a.innerText.localeCompare(b.innerText))}).
map(function(v){return v.innerText + ' | ' + v.offsetWidth;}).join('\n')
Menu name Width (px)
Rotation battle 141
Pokémon Item 139
Trash confirm 131
Replace move 131
Daycare Store 130
Double battle 128
Give up move 126
Check moves 124
Options save 122
Pokémon Do 122
Starters pick 120
Forget move 120
Delete move 119
Triple battle 116
Trash count 114
Overworld 100
Nickname 99
Withdraw 95
Pokémon 95
Pokémon 95
Bag item 89
TM teach 89
Key item 87
Starters 81
TM item 81
Options 80
Deposit 79
Release 79
Pocket 72
Switch 70
C-Gear 69
Power 67
Battle 65
Name 64
Move 58
Fight 57
Item 54
Bag 46
Bag 46
Box 46
Fly 38
hftf commented 10 years ago

Fixed for now in 45d22c8 (10em = 160px)