UI: ensures status and creator are perfectly aligned
This commit is contained in:
parent
97de973eb2
commit
1723fe86c5
|
@ -142,7 +142,8 @@ export default createWidget("discourse-post-event", {
|
||||||
<span class="separator">·</span>
|
<span class="separator">·</span>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<span class="creators">
|
<span class="creators">
|
||||||
Created by {{attach widget="discourse-post-event-creator" attrs=(hash user=state.eventModel.creator)}}
|
<span>{{i18n "discourse_post_event.event_ui.created_by"}}</span>
|
||||||
|
{{attach widget="discourse-post-event-creator" attrs=(hash user=state.eventModel.creator)}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -88,18 +88,30 @@
|
||||||
max-width: 45vw;
|
max-width: 45vw;
|
||||||
}
|
}
|
||||||
.status-and-creators {
|
.status-and-creators {
|
||||||
display: inline-flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 0.25em;
|
|
||||||
}
|
|
||||||
.status-and-creators {
|
|
||||||
color: $primary-medium;
|
color: $primary-medium;
|
||||||
font-size: $font-down-1;
|
font-size: $font-down-1;
|
||||||
|
margin: 0.25em 0;
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
margin: 0 0.25em;
|
margin: 0 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.creators {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.event-creator {
|
||||||
|
margin-left: 0.25em;
|
||||||
|
|
||||||
|
.topic-invitee-avatar {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.status {
|
.status {
|
||||||
&.expired {
|
&.expired {
|
||||||
color: $danger-medium;
|
color: $danger-medium;
|
||||||
|
|
|
@ -48,6 +48,7 @@ en:
|
||||||
add_to_calendar: Add to calendar
|
add_to_calendar: Add to calendar
|
||||||
send_pm_to_creator: Send PM to %{username}
|
send_pm_to_creator: Send PM to %{username}
|
||||||
edit_event: Edit event
|
edit_event: Edit event
|
||||||
|
created_by: Created by
|
||||||
invitees_modal:
|
invitees_modal:
|
||||||
title_invited: "List of invited users"
|
title_invited: "List of invited users"
|
||||||
title_participated: "List of users who participated"
|
title_participated: "List of users who participated"
|
||||||
|
|
Loading…
Reference in New Issue