-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(frontend): サーバーの表示をアイコンのみに切り替えられるように #14822
Open
MattyaDaihuku
wants to merge
17
commits into
misskey-dev:develop
Choose a base branch
from
MattyaDaihuku:instanceicon
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+80
−8
Open
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2518cf3
Merge pull request #14675 from misskey-dev/develop
misskey-release-bot[bot] b99e13e
Merge pull request #14741 from misskey-dev/develop
misskey-release-bot[bot] 2dcd911
feat(frontend): サーバーの表示をアイコンのみに切り替えられるように
MattyaDaihuku 40ac246
Merge branch 'misskey-dev:develop' into instanceicon
MattyaDaihuku 8c1dfab
fix(frontend): MkSelectにinstanceIconの設定を含めるように
MattyaDaihuku 1368f58
fix(frontend): MkAvatar内にMkInstanceIconの内容を含めるように
MattyaDaihuku e9e2e3c
Merge branch 'develop' into instanceicon
MattyaDaihuku e8518de
Merge pull request #14924 from misskey-dev/develop
misskey-release-bot[bot] 906a776
Merge branch 'misskey-dev:develop' into instanceicon
MattyaDaihuku 3688049
Merge pull request #15279 from misskey-dev/develop
misskey-release-bot[bot] c93ead7
Merge pull request #15378 from misskey-dev/develop
misskey-release-bot[bot] 4565291
Merge remote-tracking branch 'origin/master' into instanceicon
MattyaDaihuku b837d51
Merge remote-tracking branch 'origin/develop' into instanceicon
MattyaDaihuku ecec18f
Merge branch 'misskey-dev:develop' into instanceicon
MattyaDaihuku 9633f55
fix: upstreamに追従して変更
MattyaDaihuku e09cde1
Merge branch 'misskey-dev:develop' into instanceicon
MattyaDaihuku bbb16cf
fix
MattyaDaihuku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: syuilo and misskey-project | ||
SPDX-License-Identifier: AGPL-3.0-only | ||
--> | ||
|
||
<template> | ||
<div> | ||
<img v-if="faviconUrl" :class="$style.instanceIcon" :src="faviconUrl"/> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { computed } from 'vue'; | ||
import { instance as Instance } from '@/instance.js'; | ||
import { getProxiedImageUrlNullable } from '@/scripts/media-proxy.js'; | ||
const props = defineProps<{ | ||
instance?: { | ||
faviconUrl?: string | null | ||
} | ||
}>(); | ||
const faviconUrl = computed(() => props.instance ? getProxiedImageUrlNullable(props.instance.faviconUrl, 'preview') : getProxiedImageUrlNullable(Instance.iconUrl, 'preview') ?? '/favicon.ico'); | ||
</script> | ||
|
||
<style lang="scss" module> | ||
.instanceIcon { | ||
width: 25px; | ||
height: 25px; | ||
border-radius: 50%; | ||
opacity: 0.7; | ||
background: var(--MI_THEME-panel); | ||
box-shadow: 0 0 0 2px var(--MI_THEME-panel); | ||
} | ||
|
||
@container (max-width: 580px) { | ||
.instanceIcon { | ||
width: 21px; | ||
height: 21px; | ||
} | ||
} | ||
|
||
@container (max-width: 450px) { | ||
.instanceIcon { | ||
width: 19px; | ||
height: 19px; | ||
} | ||
} | ||
|
||
@container (max-width: 300px) { | ||
.instanceIcon { | ||
width: 17px; | ||
height: 17px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これはコンポーネントとして切り出さず、MkAvatar内に直接実装した方が自然かつパフォーマンスも良さそうです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
わかりました!そうします!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MkAvatar内に直接実装しました