Skip to content

Commit 6bd6af4

Browse files
kakkokari-gtyihYuuki
and
Yuuki
authored
fix(frontend): 絵文字関連のスタイルが崩れているのを修正 (#14559)
* fix(frontend): 絵文字関連のスタイルが崩れていたのを修正 (MisskeyIO#725) (cherry picked from commit 00fd684) * Update Changelog * ✌️ --------- Co-authored-by: Yuuki <yukikum57@gmail.com>
1 parent 7d7a12d commit 6bd6af4

6 files changed

+10
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- Enhance: コントロールパネル内のファイル一覧でセンシティブなファイルを区別しやすく
1212
- Fix: サーバーメトリクスが2つ以上あるとリロード直後の表示がおかしくなる問題を修正
1313
- Fix: 月の違う同じ日はセパレータが表示されないのを修正
14+
- Fix: 縦横比が極端なカスタム絵文字を表示する際にレイアウトが崩れる箇所があるのを修正
15+
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/725)
1416

1517
### Server
1618
- Fix: アンテナの書き込み時にキーワードが与えられなかった場合のエラーをApiErrorとして投げるように

packages/frontend/src/components/MkEmojiPicker.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ defineExpose({
611611
width: auto;
612612
height: auto;
613613
min-width: 0;
614+
padding: 0;
614615

615616
&:disabled {
616617
cursor: not-allowed;
@@ -717,7 +718,7 @@ defineExpose({
717718

718719
> .item {
719720
position: relative;
720-
padding: 0;
721+
padding: 0 3px;
721722
width: var(--eachSize);
722723
height: var(--eachSize);
723724
contain: strict;

packages/frontend/src/components/MkNotification.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SPDX-License-Identifier: AGPL-3.0-only
4646
:withTooltip="true"
4747
:reaction="notification.reaction.replace(/^:(\w+):$/, ':$1@.:')"
4848
:noStyle="true"
49-
style="width: 100%; height: 100%;"
49+
style="width: 100%; height: 100% !important; object-fit: contain;"
5050
/>
5151
</div>
5252
</div>
@@ -122,7 +122,7 @@ SPDX-License-Identifier: AGPL-3.0-only
122122
:withTooltip="true"
123123
:reaction="reaction.reaction.replace(/^:(\w+):$/, ':$1@.:')"
124124
:noStyle="true"
125-
style="width: 100%; height: 100%;"
125+
style="width: 100%; height: 100% !important; object-fit: contain;"
126126
/>
127127
</div>
128128
</div>

packages/frontend/src/components/MkReactionTooltip.vue

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const emit = defineEmits<{
3636
.icon {
3737
display: block;
3838
width: 60px;
39+
max-height: 60px;
3940
font-size: 60px; // unicodeな絵文字についてはwidthが効かないため
4041
margin: 0 auto;
4142
object-fit: contain;

packages/frontend/src/components/MkReactionsViewer.details.vue

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function getReactionName(reaction: string): string {
6363
.reactionIcon {
6464
display: block;
6565
width: 60px;
66+
max-height: 60px;
6667
font-size: 60px; // unicodeな絵文字についてはwidthが効かないため
6768
object-fit: contain;
6869
margin: 0 auto;

packages/frontend/src/pages/custom-emojis-manager.vue

+2
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ definePageMetadata(() => ({
344344
> .img {
345345
width: 42px;
346346
height: 42px;
347+
object-fit: contain;
347348
}
348349

349350
> .body {
@@ -390,6 +391,7 @@ definePageMetadata(() => ({
390391
> .img {
391392
width: 32px;
392393
height: 32px;
394+
object-fit: contain;
393395
}
394396

395397
> .body {

0 commit comments

Comments
 (0)