mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
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).
This commit is contained in:
parent
56956c224b
commit
42d817ef3d
2 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1375,8 +1375,6 @@ const compose = (opts: ComposeOptions) => {
|
|||
border: '1px solid #ccc',
|
||||
padding: '1em',
|
||||
minWidth: '40em',
|
||||
maxWidth: '70em',
|
||||
width: '40%',
|
||||
borderRadius: '.25em',
|
||||
}),
|
||||
dom.form(
|
||||
|
|
Loading…
Reference in a new issue