Skip to content

Commit

Permalink
UX: always wrap new dot and date onto same line
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed May 30, 2024
1 parent 3dc9e84 commit e418b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if context.siteSettings.discourse_post_event_enabled}}
{{#if context.topic.event_starts_at}}
{{~raw "event-date-container" topic=context.topic}}
{{~raw "event-date-container" topic=context.topic~}}
{{/if}}
{{/if}}
8 changes: 8 additions & 0 deletions assets/stylesheets/common/discourse-post-event-core-ext.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
}
}

.link-top-line {
.event-date-container-wrapper {
// prevents new dot from breaking separately onto next line
white-space: nowrap;
}
}

.link-top-line,
.header-title {
.event-date {
Expand All @@ -17,6 +24,7 @@
padding: 0 0.25em;
border-radius: 3px;
pointer-events: auto; // needed to show title attribute on hover
vertical-align: text-bottom;

.indicator {
display: flex;
Expand Down

0 comments on commit e418b3f

Please sign in to comment.