diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-16 15:21:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-16 15:21:58 +0900 |
| commit | 73ce1f61a833393c4e709d44b374aa5a4715384a (patch) | |
| tree | b873fbf99e2a9d246c456d4efc30bae294a3f4d9 /src/client/components | |
| parent | Renoteされた時刻が投稿された時刻のように表示される問... (diff) | |
| download | sharkey-73ce1f61a833393c4e709d44b374aa5a4715384a.tar.gz sharkey-73ce1f61a833393c4e709d44b374aa5a4715384a.tar.bz2 sharkey-73ce1f61a833393c4e709d44b374aa5a4715384a.zip | |
Tweak client style
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/note-detailed.vue | 4 | ||||
| -rw-r--r-- | src/client/components/notes.vue | 19 | ||||
| -rw-r--r-- | src/client/components/ui/popup.vue | 2 |
3 files changed, 18 insertions, 7 deletions
diff --git a/src/client/components/note-detailed.vue b/src/client/components/note-detailed.vue index 720f5aa2b4..e7f116d1fd 100644 --- a/src/client/components/note-detailed.vue +++ b/src/client/components/note-detailed.vue @@ -1,6 +1,6 @@ <template> <div - class="note _block" + class="lxwezrsl _block" v-if="!muted" v-show="!isDeleted" :tabindex="!isDeleted ? '-1' : null" @@ -899,7 +899,7 @@ export default defineComponent({ </script> <style lang="scss" scoped> -.note { +.lxwezrsl { position: relative; transition: box-shadow 0.1s ease; overflow: hidden; diff --git a/src/client/components/notes.vue b/src/client/components/notes.vue index 560441ba67..ba3b7d2b39 100644 --- a/src/client/components/notes.vue +++ b/src/client/components/notes.vue @@ -9,7 +9,7 @@ <div>{{ $ts.noNotes }}</div> </div> - <div v-else class="giivymft"> + <div v-else class="giivymft" :class="{ noGap }"> <div v-show="more && reversed" style="margin-bottom: var(--margin);"> <MkButton style="margin: 0 auto;" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> <template v-if="!moreFetching">{{ $ts.loadMore }}</template> @@ -18,7 +18,7 @@ </div> <XList ref="notes" :items="notes" v-slot="{ item: note }" :direction="reversed ? 'up' : 'down'" :reversed="reversed" :no-gap="noGap" :ad="true" class="notes"> - <XNote :note="note" @update:note="updated(note, $event)" :key="note._featuredId_ || note._prId_ || note.id"/> + <XNote class="qtqtichx" :note="note" @update:note="updated(note, $event)" :key="note._featuredId_ || note._prId_ || note.id"/> </XList> <div v-show="more && !reversed" style="margin-top: var(--margin);"> @@ -110,8 +110,19 @@ export default defineComponent({ } .giivymft { - > .notes { - background: var(--panel); + &.noGap { + > .notes { + background: var(--panel); + } + } + + &:not(.noGap) { + > .notes { + .qtqtichx { + background: var(--panel); + border-radius: var(--radius); + } + } } } </style> diff --git a/src/client/components/ui/popup.vue b/src/client/components/ui/popup.vue index 9e360411c0..8497eedecb 100644 --- a/src/client/components/ui/popup.vue +++ b/src/client/components/ui/popup.vue @@ -1,5 +1,5 @@ <template> -<transition :name="$store.state.animation ? 'popup-menu' : ''" :duration="$store.state.animation ? 300 : 0" appear @after-leave="onClosed" @enter="$emit('opening')" @after-enter="childRendered"> +<transition :name="$store.state.animation ? 'popup-menu' : ''" appear @after-leave="onClosed" @enter="$emit('opening')" @after-enter="childRendered"> <div v-show="manualShowing != null ? manualShowing : showing" class="ccczpooj" :class="{ front, fixed, top: position === 'top' }" ref="content" :style="{ pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }"> <slot :point="point"></slot> </div> |