From 6c4c8fe51f0e2c4ce55f5915a2bc5434aef5e5e7 Mon Sep 17 00:00:00 2001 From: marcin mikołajczak Date: Thu, 4 Jan 2024 22:46:04 +0100 Subject: Display quotes count on posts and add quotes list page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/timeline/timeline.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/timeline/timeline.js') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 1050b87a..6cb9d1f1 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -25,6 +25,7 @@ const Timeline = { 'title', 'userId', 'listId', + 'statusId', 'tag', 'embedded', 'count', @@ -121,6 +122,7 @@ const Timeline = { showImmediately, userId: this.userId, listId: this.listId, + statusId: this.statusId, tag: this.tag }) }, @@ -183,6 +185,7 @@ const Timeline = { showImmediately: true, userId: this.userId, listId: this.listId, + statusId: this.statusId, tag: this.tag }).then(({ statuses }) => { if (statuses && statuses.length === 0) { -- cgit v1.2.3-70-g09d2 From 6d77bc2bd5e96ca213496b726afb3c821e4d4fd7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Mar 2024 00:28:16 +0200 Subject: more transparent panels fixes --- src/components/button.style.js | 4 ++-- src/components/timeline/timeline.js | 8 ++++---- src/components/timeline/timeline.scss | 7 ++++++- src/components/user_profile/user_profile.vue | 2 ++ src/panel.scss | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) (limited to 'src/components/timeline/timeline.js') diff --git a/src/components/button.style.js b/src/components/button.style.js index 4910a5ac..6fec67a0 100644 --- a/src/components/button.style.js +++ b/src/components/button.style.js @@ -68,14 +68,14 @@ export default { { state: ['toggled'], directives: { - background: '--inheritedBackground,-24.2', + background: '--inheritedBackground,-14.2', shadow: ['--defaultButtonShadow', '--pressedButtonBevel'] } }, { state: ['toggled', 'hover'], directives: { - background: '--inheritedBackground,-24.2', + background: '--inheritedBackground,-14.2', shadow: ['--defaultButtonHoverGlow', '--pressedButtonBevel'] } }, diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 1050b87a..47e4a45e 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -77,13 +77,13 @@ const Timeline = { } }, classes () { - let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-nonpanel'] + let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-embedded'] if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention']) return { root: rootClasses, - header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading', '-sticky'] : []), - body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : []), - footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : []) + header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading', '-sticky'] : ['panel-body']), + body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : ['panel-body']), + footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : ['panel-body']) } }, // id map of statuses which need to be hidden in the main list due to pinning logic diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index cf621bbb..f8529a72 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -29,12 +29,17 @@ z-index: 2; } - &.-nonpanel { + &.-embedded { .timeline-heading { text-align: center; line-height: 2.75em; padding: 0 0.5em; + // Override the shrug empty filler + &:empty::before { + content: initial; + } + .button-default, .alert { line-height: 2em; diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 0ade78cd..b3f48907 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -74,6 +74,7 @@
@@ -88,6 +89,7 @@