UX: Move post date under title in share-modal (#16455)

The old position was less than ideal on mobile.
This commit is contained in:
Bianca Nenciu 2022-04-27 16:36:08 +03:00 committed by GitHub
parent 616bdeaa9d
commit 14b09c9909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 12 deletions

View File

@ -16,7 +16,7 @@
<h3 id="discourse-modal-title">{{title}}</h3>
{{#if subtitle}}
<p>{{subtitle}}</p>
<p class="subtitle">{{subtitle}}</p>
{{/if}}
</div>
{{/if}}

View File

@ -1,4 +1,7 @@
{{#d-modal-body rawTitle=(if post (i18n "post.share.title" post_number=post.post_number) (i18n "topic.share.title"))}}
{{#d-modal-body
rawTitle=(if post (i18n "post.share.title" post_number=post.post_number) (i18n "topic.share.title"))
rawSubtitle=(if post displayDate)
}}
<form>
<div class="input-group invite-link">
<label for="invite-link">
@ -52,10 +55,6 @@
{{/if}}
{{/if}}
</div>
{{#if post}}
<div class="date">{{displayDate}}</div>
{{/if}}
</div>
</form>
{{/d-modal-body}}

View File

@ -31,12 +31,6 @@
.new-topic {
margin-right: 0;
}
.date {
color: var(--primary-med-or-secondary-med);
font-weight: normal;
margin-left: auto;
}
}
.share-twitter {
@ -53,6 +47,12 @@
// topic share modal
.share-topic-modal {
.modal-header {
.subtitle {
color: var(--primary-med-or-secondary-med);
}
}
form {
margin-bottom: 0;
}

View File

@ -111,6 +111,15 @@
.create-invite-modal,
.create-invite-bulk-modal,
.share-topic-modal {
.title {
align-items: center;
display: flex;
.subtitle {
margin-left: 0.5em;
}
}
&.modal .modal-body {
margin: 1em;
padding: unset;