Rework buttons size to fix UI due to big translations

This commit is contained in:
Athozus 2023-03-29 19:14:12 +02:00
parent 9dd612acb2
commit be5f3f07d5
No known key found for this signature in database
GPG key ID: B50895022E8484BF
3 changed files with 28 additions and 24 deletions

View file

@ -30,6 +30,10 @@ if minetest.get_modpath("default") then
mail.theme = default.gui_bg .. default.gui_bg_img
end
-- translation
S = minetest.get_translator("mail")
-- sub files
local MP = minetest.get_modpath(minetest.get_current_modname())
dofile(MP .. "/util/normalize.lua")
dofile(MP .. "/util/uuid.lua")

View file

@ -1,18 +1,18 @@
local inbox_formspec = "size[8,10;]" .. mail.theme .. [[
local inbox_formspec = "size[8.5,10;]" .. mail.theme .. [[
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages") .. [[;1;false;false]
button[6,0.10;2,0.5;new;]] .. S("New") .. [[]
button[6,0.95;2,0.5;read;]] .. S("Read") .. [[]
button[6,1.70;2,0.5;reply;]] .. S("Reply") .. [[]
button[6,2.45;2,0.5;replyall;]] .. S("Reply all") .. [[]
button[6,3.20;2,0.5;forward;]] .. S("Forward") .. [[]
button[6,3.95;2,0.5;delete;]] .. S("Delete") .. [[]
button[6,4.82;2,0.5;markread;]] .. S("Mark Read") .. [[]
button[6,5.55;2,0.5;markunread;]] .. S("Mark Unread") .. [[]
button[6,6.8;2,0.5;contacts;]] .. S("Contacts") .. [[]
button[6,7.6;2,0.5;maillists;]] .. S("Mail lists") .. [[]
button[6,8.7;2,0.5;about;]] .. S("About") .. [[]
button_exit[6,9.5;2,0.5;quit;]] .. S("Close") .. [[]
button[6,0.10;2.5,0.5;new;]] .. S("New") .. [[]
button[6,0.95;2.5,0.5;read;]] .. S("Read") .. [[]
button[6,1.70;2.5,0.5;reply;]] .. S("Reply") .. [[]
button[6,2.45;2.5,0.5;replyall;]] .. S("Reply all") .. [[]
button[6,3.20;2.5,0.5;forward;]] .. S("Forward") .. [[]
button[6,3.95;2.5,0.5;delete;]] .. S("Delete") .. [[]
button[6,4.82;2.5,0.5;markread;]] .. S("Mark Read") .. [[]
button[6,5.55;2.5,0.5;markunread;]] .. S("Mark Unread") .. [[]
button[6,6.8;2.5,0.5;contacts;]] .. S("Contacts") .. [[]
button[6,7.6;2.5,0.5;maillists;]] .. S("Mail lists") .. [[]
button[6,8.7;2.5,0.5;about;]] .. S("About") .. [[]
button_exit[6,9.5;2.5,0.5;quit;]] .. S("Close") .. [[]
tablecolumns[color;text;text]
table[0,0.7;5.75,9.35;inbox;#999,]] .. S("From") .. "," .. S("Subject")

View file

@ -1,16 +1,16 @@
local sent_formspec = "size[8,10;]" .. mail.theme .. [[
local sent_formspec = "size[8.5,10;]" .. mail.theme .. [[
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages") .. [[;2;false;false]
button[6,0.10;2,0.5;new;]] .. S("New") .. [[]
button[6,0.95;2,0.5;read;]] .. S("Read") .. [[]
button[6,1.70;2,0.5;reply;]] .. S("Reply") .. [[]
button[6,2.45;2,0.5;replyall;]] .. S("Reply all") .. [[]
button[6,3.20;2,0.5;forward;]] .. S("Forward") .. [[]
button[6,3.95;2,0.5;delete;]] .. S("Delete") .. [[]
button[6,6.8;2,0.5;contacts;]] .. S("Contacts") .. [[]
button[6,7.6;2,0.5;maillists;]] .. S("Mail lists") .. [[]
button[6,8.7;2,0.5;about;]] .. S("About") .. [[]
button_exit[6,9.5;2,0.5;quit;]] .. S("Close") .. [[]
button[6,0.10;2.5,0.5;new;]] .. S("New") .. [[]
button[6,0.95;2.5,0.5;read;]] .. S("Read") .. [[]
button[6,1.70;2.5,0.5;reply;]] .. S("Reply") .. [[]
button[6,2.45;2.5,0.5;replyall;]] .. S("Reply all") .. [[]
button[6,3.20;2.5,0.5;forward;]] .. S("Forward") .. [[]
button[6,3.95;2.5,0.5;delete;]] .. S("Delete") .. [[]
button[6,6.8;2.5,0.5;contacts;]] .. S("Contacts") .. [[]
button[6,7.6;2.5,0.5;maillists;]] .. S("Mail lists") .. [[]
button[6,8.7;2.5,0.5;about;]] .. S("About") .. [[]
button_exit[6,9.5;2.5,0.5;quit;]] .. S("Close") .. [[]
tablecolumns[color;text;text]
table[0,0.7;5.75,9.35;sent;#999,]] .. S("To") .. "," .. S("Subject")