Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

### Client
- Enhance: チャンネル指定リノートでリノート先のチャンネルに移動できるように
- Enhance: 添付画像のサムネイルを領域いっぱいに表示できるようにするオプションを追加
- Fix: 一部のページ内リンクが正しく動作しない問題を修正

### Server
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ fontSize: "フォントサイズ"
mediaListWithOneImageAppearance: "画像が1枚のみのメディアリストの高さ"
limitTo: "{x}を上限に"
showMediaListByGridInWideArea: "画面幅が広いときはメディアリストを横並びで表示する"
coverMediaList: "添付画像のサムネイルを領域いっぱいに表示する"
noFollowRequests: "フォロー申請はありません"
openImageInNewTab: "画像を新しいタブで開く"
dashboard: "ダッシュボード"
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMediaList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
>
<template v-for="media in mediaList.filter(media => previewable(media))">
<XVideo v-if="media.type.startsWith('video')" :key="`video:${media.id}`" :class="$style.media" :video="media"/>
<XImage v-else-if="media.type.startsWith('image')" :key="`image:${media.id}`" :class="$style.media" class="image" :data-id="media.id" :image="media" :raw="raw"/>
<XImage v-else-if="media.type.startsWith('image')" :key="`image:${media.id}`" :class="$style.media" class="image" :data-id="media.id" :image="media" :raw="raw" :cover="prefer.r.coverMediaList.value"/>
</template>
</div>
</div>
Expand Down
9 changes: 9 additions & 0 deletions packages/frontend/src/pages/settings/preferences.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkPreferenceContainer>
</SearchMarker>

<SearchMarker :keywords="['image', 'photo', 'picture', 'media', 'thumbnail', 'cover', 'size', 'full', 'attachment']">
<MkPreferenceContainer k="coverMediaList">
<MkSwitch v-model="coverMediaList">
<template #label><SearchLabel>{{ i18n.ts.coverMediaList }}</SearchLabel></template>
</MkSwitch>
</MkPreferenceContainer>
</SearchMarker>

<SearchMarker :keywords="['reaction', 'picker', 'contextmenu', 'open']">
<MkPreferenceContainer k="useReactionPickerForContextMenu">
<MkSwitch v-model="useReactionPickerForContextMenu">
Expand Down Expand Up @@ -911,6 +919,7 @@ const showReactionsCount = prefer.model('showReactionsCount');
const enableQuickAddMfmFunction = prefer.model('enableQuickAddMfmFunction');
const forceShowAds = prefer.model('forceShowAds');
const loadRawImages = prefer.model('loadRawImages');
const coverMediaList = prefer.model('coverMediaList');
const imageNewTab = prefer.model('imageNewTab');
const showFixedPostForm = prefer.model('showFixedPostForm');
const showFixedPostFormInChannel = prefer.model('showFixedPostFormInChannel');
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/preferences/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,9 @@ export const PREF_DEF = definePreferences({
defaultVideoCompressionLevel: {
default: 2 as 0 | 1 | 2 | 3,
},
coverMediaList: {
default: false,
},

'sound.masterVolume': {
default: 0.5,
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/src/autogen/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2188,6 +2188,10 @@ export interface Locale extends ILocale {
* 画面幅が広いときはメディアリストを横並びで表示する
*/
"showMediaListByGridInWideArea": string;
/**
* 添付画像のサムネイルを領域いっぱいに表示する
*/
"coverMediaList": string;
/**
* フォロー申請はありません
*/
Expand Down
Loading