Edit /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php as follows:
In the LAYOUT INFO area:
# structure is - ID, Legend, startpos, stoppos, color1, color2
$rectangle1 = array("trunk","Trunks", 73, 120, "10ff10", "009900");
$rectangle2 = array("extension","Extensions", 1, 60, "1010ff", "99cccc");
$rectangle3 = array("parking","Parking lots", 69, 112, "ffff10", "cc9933");
$rectangle4 = array("conference","Conferences", 65, 108, "006666", "00a010");
$rectangle5 = array("queue","Queues", 61, 104, "ff1010", "a01000");
(Only the start & stop positions change)
In BUTTON INFO:
$buttonsizex = 164;
(Make the buttons narrower)
At line 473 (or 394 depending on version), where it reads "$id : $description\" -- remove the space before the colon to gain back a few pixels.
At line 274, append the following after devices and before the quotation mark: ORDER BY id LIMIT 59
Edit /var/www/html/panel/op_style.cfg:
btn_width=162