summaryrefslogtreecommitdiff
path: root/src/client/components/date-separated-list.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-10 12:40:50 +0900
committerGitHub <noreply@github.com>2021-04-10 12:40:50 +0900
commitd3fe02fb3e8dd7bfc45c246d54d45acccd5959c7 (patch)
tree4cd72e5e5868e89ef3dd83ada99495da2bd7cd85 /src/client/components/date-separated-list.vue
parentFix punycode deprecation warning (#7426) (diff)
downloadmisskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.tar.gz
misskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.tar.bz2
misskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.zip
Default UI redesign (#7429)
* wip * wip * wip * wip * Update default.sidebar.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update sticky-sidebar.ts * wip * wip * Update messaging-room.form.vue * Update timeline.vue
Diffstat (limited to 'src/client/components/date-separated-list.vue')
-rw-r--r--src/client/components/date-separated-list.vue31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue
index be9f01ca1f..433655d6ed 100644
--- a/src/client/components/date-separated-list.vue
+++ b/src/client/components/date-separated-list.vue
@@ -37,14 +37,16 @@ export default defineComponent({
});
}
+ const noGap = [...document.querySelectorAll('._noGap_')].some(el => el.contains(this.$parent.$el));
+
return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? {
- class: 'sqadhkmv _list_',
+ class: 'sqadhkmv' + (noGap ? ' _block' : ''),
name: 'list',
tag: 'div',
'data-direction': this.direction,
'data-reversed': this.reversed ? 'true' : 'false',
} : {
- class: 'sqadhkmv _list_',
+ class: 'sqadhkmv',
}, this.items.map((item, i) => {
const el = this.$slots.default({
item: item
@@ -117,11 +119,7 @@ export default defineComponent({
transform: translateY(-64px);
}
}
-}
-</style>
-<style lang="scss">
-.sqadhkmv {
> .separator {
text-align: center;
@@ -155,4 +153,25 @@ export default defineComponent({
}
}
}
+
+._noGap_ .sqadhkmv {
+ > * {
+ margin: 0 !important;
+ border: none;
+ border-radius: 0;
+ box-shadow: none;
+
+ &:not(:last-child) {
+ border-bottom: solid 0.5px var(--divider);
+ }
+ }
+}
+
+._inContainer_ .sqadhkmv > * {
+ margin: 0 !important;
+ border: none;
+ border-bottom: solid 0.5px var(--divider);
+ border-radius: 0;
+ box-shadow: none;
+}
</style>