mirror of
https://github.com/discourse/discourse.git
synced 2025-06-14 19:29:21 +08:00
UX: New text and style for dominating topic message (#13789)
This commit is contained in:
@ -0,0 +1,11 @@
|
|||||||
|
<a href {{action closeMessage message}} class="close">{{d-icon "times"}}</a>
|
||||||
|
{{html-safe message.body}}
|
||||||
|
|
||||||
|
{{#if currentUser.can_invite_to_forum}}
|
||||||
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
label="topic.invite_reply.title"
|
||||||
|
icon="user-friends"
|
||||||
|
action=(route-action "showInvite")
|
||||||
|
}}
|
||||||
|
{{/if}}
|
@ -322,7 +322,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
button {
|
.btn-primary {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
.cancel {
|
.cancel {
|
||||||
|
@ -631,7 +631,9 @@
|
|||||||
&.single-tab {
|
&.single-tab {
|
||||||
background: none;
|
background: none;
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
padding: 4px 0;
|
padding: 0;
|
||||||
|
font-size: var(--font-up-3);
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,6 @@
|
|||||||
.modal-body {
|
.modal-body {
|
||||||
max-width: 475px;
|
max-width: 475px;
|
||||||
min-width: 320px;
|
min-width: 320px;
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-panel {
|
|
||||||
padding: 0.667em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
|
@ -85,16 +85,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.composer-popup {
|
.composer-popup {
|
||||||
|
box-sizing: border-box;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: calc(50% - 45px);
|
width: calc(50% - 30px);
|
||||||
max-width: 724px;
|
max-width: 724px;
|
||||||
top: 20px;
|
top: 21px; // grippie height + .reply-to margin-top + .reply-area padding-top
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
left: 51%;
|
left: 51%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
z-index: z("composer", "popover");
|
z-index: z("composer", "popover");
|
||||||
padding: 10px 10px 35px 10px;
|
padding: 10px 10px 35px 10px;
|
||||||
box-shadow: shadow("card");
|
box-shadow: shadow("dropdown");
|
||||||
background: var(--highlight-medium);
|
background: var(--highlight-medium);
|
||||||
.hide-preview & {
|
.hide-preview & {
|
||||||
z-index: z("composer", "dropdown") + 1;
|
z-index: z("composer", "dropdown") + 1;
|
||||||
@ -108,6 +109,18 @@
|
|||||||
background-color: var(--tertiary-low);
|
background-color: var(--tertiary-low);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.dominating-topic-message {
|
||||||
|
bottom: unset;
|
||||||
|
padding: 2.25em 6em 2.5em 2.25em;
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
font-size: var(--font-up-1);
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
@ -523,12 +523,7 @@ en:
|
|||||||
|
|
||||||
It’s easier for everyone to read topics that have fewer in-depth replies versus lots of small, individual replies.
|
It’s easier for everyone to read topics that have fewer in-depth replies versus lots of small, individual replies.
|
||||||
|
|
||||||
dominating_topic: |
|
dominating_topic: You’ve posted more than %{percent}% of the replies here, is there anyone else you would like to hear from?
|
||||||
### Let others join the conversation
|
|
||||||
|
|
||||||
This topic is clearly important to you – you've posted more than %{percent}% of the replies here.
|
|
||||||
|
|
||||||
It could be even better if you gave other people space to share their points of view, too. Can you invite them over?
|
|
||||||
|
|
||||||
get_a_room: |
|
get_a_room: |
|
||||||
### Encourage everyone to get involved in the conversation
|
### Encourage everyone to get involved in the conversation
|
||||||
|
@ -141,9 +141,9 @@ class ComposerMessagesFinder
|
|||||||
|
|
||||||
{
|
{
|
||||||
id: 'dominating_topic',
|
id: 'dominating_topic',
|
||||||
templateName: 'education',
|
templateName: 'dominating-topic',
|
||||||
wait_for_typing: true,
|
wait_for_typing: true,
|
||||||
extraClass: 'education-message',
|
extraClass: 'education-message dominating-topic-message',
|
||||||
body: PrettyText.cook(I18n.t('education.dominating_topic', percent: (ratio * 100).round))
|
body: PrettyText.cook(I18n.t('education.dominating_topic', percent: (ratio * 100).round))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -207,6 +207,7 @@ module SvgSprite
|
|||||||
"upload",
|
"upload",
|
||||||
"user",
|
"user",
|
||||||
"user-edit",
|
"user-edit",
|
||||||
|
"user-friends",
|
||||||
"user-plus",
|
"user-plus",
|
||||||
"user-secret",
|
"user-secret",
|
||||||
"user-shield",
|
"user-shield",
|
||||||
|
Reference in New Issue
Block a user