From 71863061c691df7f59cf4be283a3e0772d485378 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 4 Apr 2022 19:41:09 +0300 Subject: fixed tons of stuff, at least it looks normalish on desktop --- src/components/timeline/timeline.scss | 1 - 1 file changed, 1 deletion(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 2c5a67e2..c10375d4 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -13,7 +13,6 @@ max-width: 100%; flex-wrap: nowrap; align-items: center; - position: relative; .loadmore-button { flex-shrink: 0; -- cgit v1.2.3-70-g09d2 From bb29218a6cb3682d230c12c630916562f8b24028 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 19 Apr 2022 23:06:57 +0300 Subject: fixate conversation heading --- src/components/conversation/conversation.vue | 2 +- src/components/timeline/timeline.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 2e7f8684..c2c323c1 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -7,7 +7,7 @@ >
{{ $t('timeline.conversation') }} - - - + +
Date: Thu, 29 Sep 2022 11:49:19 +0300 Subject: fix buttons overlapping --- src/components/notifications/notifications.scss | 5 +++-- src/components/timeline/timeline.scss | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index f4a3e099..b57dfb3a 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -35,11 +35,12 @@ text-align: center; width: var(--__panel-heading-height); height: var(--__panel-heading-height); - margin: calc(-1 * var(--panel-heading-height-padding)); + margin: calc(-1 * var(--panel-heading-height-padding)) 0; + margin-right: -0.5em; > button { box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)); + padding: calc(1 * var(--panel-heading-height-padding)) 0; height: 100%; width: 100%; text-align: center; diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index c38ecfea..18a80a63 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -18,11 +18,12 @@ text-align: center; width: var(--__panel-heading-height); height: var(--__panel-heading-height); - margin: calc(-1 * var(--panel-heading-height-padding)); + margin: calc(-1 * var(--panel-heading-height-padding)) 0; + margin-right: -0.5em; > button { box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)); + padding: calc(1 * var(--panel-heading-height-padding)) 0; height: 100%; width: 100%; text-align: center; @@ -37,6 +38,7 @@ align-self: stretch; text-align: center; width: var(--__panel-heading-height); + margin-right: -0.5em; svg { font-size: 1.2em; -- cgit v1.2.3-70-g09d2 From ce6ce4b6cdd3aea2712ce73c0b0fd9d64372ac8e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 29 Sep 2022 11:52:48 +0300 Subject: minor improvements --- src/components/notifications/notifications.scss | 2 +- src/components/timeline/timeline.scss | 4 ++-- src/components/timeline/timeline.vue | 6 ++++-- src/panel.scss | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index b57dfb3a..245e3f47 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -36,7 +36,7 @@ width: var(--__panel-heading-height); height: var(--__panel-heading-height); margin: calc(-1 * var(--panel-heading-height-padding)) 0; - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); > button { box-sizing: border-box; diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 18a80a63..f5dbb639 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -19,7 +19,7 @@ width: var(--__panel-heading-height); height: var(--__panel-heading-height); margin: calc(-1 * var(--panel-heading-height-padding)) 0; - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); > button { box-sizing: border-box; @@ -38,7 +38,7 @@ align-self: stretch; text-align: center; width: var(--__panel-heading-height); - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); svg { font-size: 1.2em; diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index fe5d4822..15d097e8 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -5,9 +5,11 @@ v-if="!embedded" :timeline-name="timelineName" /> -
+
diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 245e3f47..f71f9b76 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -29,27 +29,6 @@ } } } - - .timeline-header-button { - align-self: stretch; - text-align: center; - width: var(--__panel-heading-height); - height: var(--__panel-heading-height); - margin: calc(-1 * var(--panel-heading-height-padding)) 0; - margin-right: calc(-1 * var(--__panel-heading-gap)); - - > button { - box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)) 0; - height: 100%; - width: 100%; - text-align: center; - - svg { - font-size: 1.2em; - } - } - } } .notification { diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 22f67e65..3f4b1b42 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -21,7 +21,7 @@ >{{ unseenCount }}
- +
button { - box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)) 0; - height: 100%; - width: 100%; - text-align: center; - - svg { - font-size: 1.2em; - } - } - } - - .timeline-header-icon { - align-self: stretch; - text-align: center; - width: var(--__panel-heading-height); - margin-right: calc(-1 * var(--__panel-heading-gap)); - - svg { - font-size: 1.2em; - } - } - .loadmore-button { position: relative } diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 15d097e8..77480345 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -6,7 +6,7 @@ :timeline-name="timelineName" />
button { + box-sizing: border-box; + padding: calc(1 * var(--panel-heading-height-padding)) 0; + height: 100%; + width: 100%; + text-align: center; + + svg { + font-size: 1.2em; + } + } + } + + .rightside-icon { + align-self: stretch; + text-align: center; + width: var(--__panel-heading-height); + margin-right: calc(-1 * var(--__panel-heading-gap)); + + svg { + font-size: 1.2em; + } + } } .panel-footer { -- cgit v1.2.3-70-g09d2 From 373fb077a820deae28f494e7d2dc8c19370a54bf Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 17 Oct 2022 21:50:49 +0300 Subject: use new color slot for badges --- src/components/timeline/timeline.scss | 2 +- src/services/theme_data/pleromafe.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 900bdad3..9fc2aeab 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -10,7 +10,7 @@ top: calc(50% - 4px); margin-left: 6px; margin-top: -6px; - background-color: var(--cGreen); + background-color: var(--badgeNeutral); } .loadmore-button { diff --git a/src/services/theme_data/pleromafe.js b/src/services/theme_data/pleromafe.js index c2983be7..dc7a5d89 100644 --- a/src/services/theme_data/pleromafe.js +++ b/src/services/theme_data/pleromafe.js @@ -709,6 +709,14 @@ export const SLOT_INHERITANCE = { textColor: 'bw' }, + badgeNeutral: '--cGreen', + badgeNeutralText: { + depends: ['text', 'badgeNeutral'], + layer: 'badge', + variant: 'badgeNeutral', + textColor: 'bw' + }, + chatBg: { depends: ['bg'] }, -- cgit v1.2.3-70-g09d2 From 3aadad30133928bdac3067dfc1fd7f94dbf70b52 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 1 Nov 2022 22:26:04 +0200 Subject: show counter in show new button on mobile --- src/components/timeline/timeline.js | 7 +++++++ src/components/timeline/timeline.scss | 15 +++++++++++++++ src/components/timeline/timeline.vue | 4 +++- 3 files changed, 25 insertions(+), 1 deletion(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index f4efc5e8..b7414610 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -69,6 +69,13 @@ const Timeline = { return `${this.$t('timeline.show_new')} (${this.newStatusCount})` } }, + mobileLoadButtonString () { + if (this.timeline.flushMarker !== 0) { + return '+' + } else { + return this.newStatusCount > 99 ? '∞' : this.newStatusCount + } + }, classes () { let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-nonpanel'] if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention']) diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 9fc2aeab..24a45070 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -13,6 +13,21 @@ background-color: var(--badgeNeutral); } + .alert-badge { + font-size: 0.75em; + line-height: 1; + text-align: right; + border-radius: var(--tooltipRadius); + position: absolute; + left: calc(50% - 0.5em); + top: calc(50% - 0.4em); + padding: 0.2em; + margin-left: 0.7em; + margin-top: -1em; + background-color: var(--badgeNeutral); + color: var(--badgeNeutralText); + } + .loadmore-button { position: relative } diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index e6038830..8a036fd0 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -38,7 +38,9 @@ fixed-width icon="circle-plus" /> -
+
+ {{ mobileLoadButtonString }} +
Date: Tue, 1 Nov 2022 23:05:17 +0200 Subject: lint --- src/components/timeline/timeline.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/timeline/timeline.scss') diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 24a45070..c6fb1ca7 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -29,7 +29,7 @@ } .loadmore-button { - position: relative + position: relative; } &.-blocked { -- cgit v1.2.3-70-g09d2