From 42d817ef3d9a97ea7cd03d67862a8c10e3717776 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 14 Oct 2023 21:02:54 +0200 Subject: [PATCH] quick fix for making compose window resizable by expanding/shrinking when textarea is resized the textarea is resizable (though it's not convenient to do in firefox which only shows a dragcorner in the bottomright, usually located in the bottom corner of the screen, so there is little space left to drag the corner; the workaround is to move the window temporarily). --- webmail/webmail.js | 2 -- webmail/webmail.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/webmail/webmail.js b/webmail/webmail.js index 6fb3047..2b6d6e3 100644 --- a/webmail/webmail.js +++ b/webmail/webmail.js @@ -2147,8 +2147,6 @@ const compose = (opts) => { border: '1px solid #ccc', padding: '1em', minWidth: '40em', - maxWidth: '70em', - width: '40%', borderRadius: '.25em', }), dom.form(fieldset = dom.fieldset(dom.table(style({ width: '100%' }), dom.tr(dom.td(style({ textAlign: 'right', color: '#555' }), dom.span('From:')), dom.td(dom.clickbutton('Cancel', style({ float: 'right' }), attr.title('Close window, discarding message.'), clickCmd(cmdCancel, shortcuts)), from = dom.select(attr.required(''), style({ width: 'auto' }), fromOptions), ' ', toBtn = dom.clickbutton('To', clickCmd(cmdAddTo, shortcuts)), ' ', ccBtn = dom.clickbutton('Cc', clickCmd(cmdAddCc, shortcuts)), ' ', bccBtn = dom.clickbutton('Bcc', clickCmd(cmdAddBcc, shortcuts)), ' ', replyToBtn = dom.clickbutton('ReplyTo', clickCmd(cmdReplyTo, shortcuts)), ' ', customFromBtn = dom.clickbutton('From', attr.title('Set custom From address/name.'), clickCmd(cmdCustomFrom, shortcuts)))), toRow = dom.tr(dom.td('To:', style({ textAlign: 'right', color: '#555' })), toCell = dom.td(style({ width: '100%' }))), replyToRow = dom.tr(dom.td('Reply-To:', style({ textAlign: 'right', color: '#555' })), replyToCell = dom.td(style({ width: '100%' }))), ccRow = dom.tr(dom.td('Cc:', style({ textAlign: 'right', color: '#555' })), ccCell = dom.td(style({ width: '100%' }))), bccRow = dom.tr(dom.td('Bcc:', style({ textAlign: 'right', color: '#555' })), bccCell = dom.td(style({ width: '100%' }))), dom.tr(dom.td('Subject:', style({ textAlign: 'right', color: '#555' })), dom.td(style({ width: '100%' }), subject = dom.input(focusPlaceholder('subject...'), attr.value(opts.subject || ''), attr.required(''), style({ width: '100%' }))))), body = dom.textarea(dom._class('mono'), attr.rows('15'), style({ width: '100%' }), // Explicit string object so it doesn't get the highlight-unicode-block-changes diff --git a/webmail/webmail.ts b/webmail/webmail.ts index 8a98844..e0871dc 100644 --- a/webmail/webmail.ts +++ b/webmail/webmail.ts @@ -1375,8 +1375,6 @@ const compose = (opts: ComposeOptions) => { border: '1px solid #ccc', padding: '1em', minWidth: '40em', - maxWidth: '70em', - width: '40%', borderRadius: '.25em', }), dom.form(