mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 10:54:56 +02:00
Update MkImageGallery.item.vue
This commit is contained in:
@@ -61,6 +61,7 @@ import * as os from '@/os.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { makeDoubleTapDetector } from '@/utility/double-tap.js';
|
||||
import { calculateSourceTransform } from '@/components/MkImageGallery.utils.js';
|
||||
import { deviceKind } from '@/utility/device-kind.js';
|
||||
|
||||
export type Image = {
|
||||
id: string;
|
||||
@@ -99,7 +100,7 @@ onMounted(() => {
|
||||
infoShowing.value = true;
|
||||
});
|
||||
|
||||
const padding = 30;
|
||||
const padding = deviceKind === 'smartphone' ? 0 : 30;
|
||||
const ANIMATION_DURATION = 200;
|
||||
|
||||
// maxからはみ出す場合は縮小、maxに満たない場合は拡大する(contain)
|
||||
@@ -463,13 +464,13 @@ watch(thumbnailImageLoaded, () => {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
background: var(--MI_THEME-panel);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
pointer-events: none;
|
||||
font-size: 85%;
|
||||
color: #fff;
|
||||
color: var(--MI_THEME-fg);
|
||||
opacity: 0;
|
||||
transition: opacity 200ms ease, bottom 200ms ease;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user