hide name/email/subject field when not useable

This commit is contained in:
ccd0 2014-06-08 12:31:35 -07:00
parent 42468dd5c6
commit e6712f9d34
2 changed files with 11 additions and 8 deletions

View File

@ -845,9 +845,9 @@ span.hide-announcement {
font-size: 10pt; font-size: 10pt;
} }
.persona { .persona {
width: 248px; width: 100%;
max-width: 100%; display: flex;
min-width: 100%; flex-direction: row;
} }
#dump-button { #dump-button {
width: 10%; width: 10%;
@ -865,10 +865,9 @@ span.hide-announcement {
padding: 1px 0px 2px; padding: 1px 0px 2px;
opacity: 0.6; opacity: 0.6;
} }
.persona .field:not(#dump) { .persona .field {
width: 95px; flex: 1;
min-width: 33.3%; width: 0;
max-width: 33.3%;
} }
#qr textarea.field { #qr textarea.field {
height: 14.8em; height: 14.8em;

View File

@ -474,7 +474,11 @@ QR =
QR.max_width_video = QR.max_height_video = 2048 QR.max_width_video = QR.max_height_video = 2048
QR.max_duration_video = 120 QR.max_duration_video = 120
QR.spoiler = !!$ 'input[name=spoiler]' QR.nodes.name.hidden = !$ '.postForm input[name=name]:not([type=hidden])'
QR.nodes.email.hidden = !$ '.postForm input[name=email]:not([type=hidden])'
QR.nodes.sub.hidden = !$ '.postForm input[name=sub]:not([type=hidden])'
QR.spoiler = !!$ '.postForm input[name=spoiler]'
if QR.spoiler if QR.spoiler
$.addClass QR.nodes.el, 'has-spoiler' $.addClass QR.nodes.el, 'has-spoiler'
else else