diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-16 12:06:54 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-16 12:06:54 +0900 |
| commit | 481b46ac9e40d7cd6ebbb69ae93a17a6b3fe8cae (patch) | |
| tree | ab90a30a51a5d7218c5e52ac95dec13ac4178fa8 /src/client/pages | |
| parent | Improve UI (diff) | |
| download | sharkey-481b46ac9e40d7cd6ebbb69ae93a17a6b3fe8cae.tar.gz sharkey-481b46ac9e40d7cd6ebbb69ae93a17a6b3fe8cae.tar.bz2 sharkey-481b46ac9e40d7cd6ebbb69ae93a17a6b3fe8cae.zip | |
Tweak UI
Diffstat (limited to 'src/client/pages')
| -rw-r--r-- | src/client/pages/user/index.photos.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/pages/user/index.photos.vue b/src/client/pages/user/index.photos.vue index b5493fd9f2..83cd3e93f5 100644 --- a/src/client/pages/user/index.photos.vue +++ b/src/client/pages/user/index.photos.vue @@ -6,10 +6,11 @@ <div class="stream" v-if="!fetching && images.length > 0"> <MkA v-for="image in images" class="img" - :style="`background-image: url(${thumbnail(image.file)})`" :to="notePage(image.note)" :key="image.id" - ></MkA> + > + <ImgWithBlurhash :hash="image.blurhash" :src="thumbnail(image.file)" :alt="image.name" :title="image.name"/> + </MkA> </div> <p class="empty" v-if="!fetching && images.length == 0">{{ $ts.nothing }}</p> </div> @@ -23,10 +24,12 @@ import { getStaticImageUrl } from '@client/scripts/get-static-image-url'; import notePage from '../../filters/note'; import * as os from '@client/os'; import MkContainer from '@client/components/ui/container.vue'; +import ImgWithBlurhash from '@client/components/img-with-blurhash.vue'; export default defineComponent({ components: { MkContainer, + ImgWithBlurhash, }, props: { user: { @@ -88,10 +91,8 @@ export default defineComponent({ > .img { height: 128px; - background-position: center center; - background-size: cover; - background-clip: content-box; border-radius: 6px; + overflow: clip; } } |