ui: show file sizes in human-friendly

This commit is contained in:
2026-01-05 16:47:24 +02:00
parent bdb194679e
commit 9b44285c56
3 changed files with 40 additions and 9 deletions
+4 -4
View File
@@ -29,10 +29,10 @@ void upload_dialogue_modal_cb(callback_args_t *args) {
dialogue_t *init_upload_dialogue_modal(app_t *app) {
if (app == NULL)
return NULL;
group_el_init_t content[] = {{.type = w_input,
.label = "File description",
.length = 30}, /* length is ignored */
{.type = w_end}};
group_el_init_t content[] = {
{.type = w_input, .label = "File description", .length = 30},
{.type = w_input, .label = "File path", .length = 30},
{.type = w_end}};
group_el_init_t actions[] = {
{.type = w_button, .label = "Upload", .is_default = 1},