From 631b8b93a4a8dd548bae5ab9fa7bc4d6e892ae3f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 20 Apr 2022 19:44:31 +0300 Subject: tons of fixes mainly aimed at panel headings --- src/components/timeline/timeline.js | 2 +- src/components/timeline/timeline.scss | 22 +++++++++++++--------- src/components/timeline/timeline.vue | 2 +- .../timeline/timeline_quick_settings.vue | 16 ++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) (limited to 'src/components/timeline') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 4ae7410e..f79b5167 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -60,7 +60,7 @@ const Timeline = { } }, classes () { - let rootClasses = !this.embedded ? ['panel', 'panel-default'] : [] + let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-nonpanel'] if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention']) return { root: rootClasses, diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index ae8324b3..4c58e686 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -13,15 +13,6 @@ max-width: 100%; flex-wrap: nowrap; align-items: center; - - .loadmore-button { - flex-shrink: 0; - } - - .loadmore-text { - flex-shrink: 0; - line-height: 1em; - } } .timeline-footer { @@ -31,4 +22,17 @@ .conversation-heading { top: calc(var(--panel-heading-height) * 2); } + + &.-nonpanel { + .timeline-heading { + text-align: center; + line-height: 2.75em; + padding: 0 0.5em; + } + + .button-default, .alert { + line-height: 2em; + width: 100%; + } + } } diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index d37a9e2a..ff3cd72d 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -1,5 +1,5 @@