From: Art Cancro Date: Wed, 12 Oct 2022 03:14:08 +0000 (-0400) Subject: Initial layout of mail compose screen. X-Git-Tag: v959~29 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=e9c01ed778e2e39f5c824a001049305fb0841811;p=citadel.git Initial layout of mail compose screen. --- diff --git a/webcit-ng/static/css/webcit.css b/webcit-ng/static/css/webcit.css index b0af8d64e..004de4c9f 100644 --- a/webcit-ng/static/css/webcit.css +++ b/webcit-ng/static/css/webcit.css @@ -467,9 +467,49 @@ blockquote pre { .ctdl-compose-mail { /* mail composition window */ width: 100%; height: 100%; - overflow: auto; - border: 2px dashed red; /* FIXME this goes away after testing */ + overflow: none; + border: none; + padding: 0; background-color: GhostWhite; + display: grid; + grid-template-rows: auto auto 1fr; + grid-template-columns: auto 1fr; + grid-template-areas: + 'ctdl-compose-to-label ctdl-compose-to-field' + 'ctdl-compose-subject-label ctdl-compose-subject-field' + 'ctdl-compose-message-box ctdl-compose-message-box'; + gap: 3px; +} + +.ctdl-compose-to-label { + grid-area: ctdl-compose-to-label; + padding: 0.5vw; +} + +.ctdl-compose-to-field { + grid-area: ctdl-compose-to-field; + padding: 0.5vw; + border-bottom: 1px solid Grey; + margin-right: 0.5vw; +} + +.ctdl-compose-subject-label { + grid-area: ctdl-compose-subject-label; + padding: 0.5vw; +} + +.ctdl-compose-subject-field { + grid-area: ctdl-compose-subject-field; + padding: 0.5vw; + border-bottom: 1px solid Grey; + margin-right: 0.5vw; +} + +.ctdl-compose-message-box { + grid-area: ctdl-compose-message-box; + overflow-x: wrap; + overflow-y: auto; + padding: 0.5vw; } .ctdl-login-screen-grid-container { diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 37773c294..27a5a0b9b 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -204,19 +204,27 @@ function render_mailbox_display() { // Compose a new mail message (called by the Reply button here, or by the dispatcher in views.js) function mail_compose(is_quoted, references, msgid) { + // is_quoted true or false depending on whether the user selected "reply quoted" (is this appropriate for mail?) + // references list of references, be sure to use this in a reply + // msgid if a reply, the msgid of the most recent message in the chain, the one to which we are replying + document.getElementById("ctdl-main").innerHTML - = "
" - - // These should be hidden but we're in the process of building - + "is_quoted: " - + "references: " - + "reply-to msgid: " - - + "" - + "" - + "" - + "
from" + current_user + "
to
subject
" - + "
" + + // Hidden values that we are storing right here in the document tree for later + = "" + + "" + + "" + + // Grid! + + "
" + + // Now display some things + + "
Tooo:
" + + "
hahahahaha
" + + "
Soobjeckt:
" + + "
h0h0h0h
" + + + "
" + "
" ;