このInstancetickerすっごくすき
Conversation
Notices
-
Embed this notice
えとねさば (tannu@sudo.mkdir.uk)'s status on Thursday, 23-Feb-2023 17:41:23 JST えとねさば -
Embed this notice
Lya - v2.2.0 (lya@sudo.mkdir.uk)'s status on Thursday, 23-Feb-2023 17:41:22 JST Lya - v2.2.0 @tannu @morotesovtannu@msk.ilnk.info
const themeColor より上は変えにゃいほうが良かったかもしれません...
それ以外も原因あるかもしれませんが...せせせの:musume:ですよ〜 likes this. -
Embed this notice
Lya - v2.2.0 (lya@sudo.mkdir.uk)'s status on Thursday, 23-Feb-2023 17:41:23 JST Lya - v2.2.0 @tannu 一応こんな感じです {{ instance.name }} import { } from 'vue'; import { instanceName } from '@/config'; import { instance as Instance } from '@/instance'; import { getProxiedImageUrlNullable } from '@/scripts/media-proxy'; const props = defineProps(); // if no instance data is given, this is for the local instance const instance = props.instance ?? { name: instanceName, themeColor: (document.querySelector('meta[name="theme-color-orig"]') as HTMLMetaElement).content, }; const faviconUrl = $computed(() => props.instance ? getProxiedImageUrlNullable(props.instance.faviconUrl, 'preview') : getProxiedImageUrlNullable(Instance.iconUrl, 'preview') ?? getProxiedImageUrlNullable(Instance.faviconUrl, 'preview') ?? '/favicon.ico'); const themeColor = instance.themeColor ?? '#777777'; const bg = { background: `linear-gradient(110deg, rgba(0,0,0,0), rgba(0,0,0,0) calc(100% - 7em), ${themeColor}30 calc(100% - 7em), ${themeColor}0a 100%)`, }; .root { display: flex; align-items: center; border-radius: 4px 0 0 4px; overflow: clip; color: #fff; width: 100%; height: 100%; position: absolute; top: 0; right: 0; z-index: -1; text-shadow: /* .866 ≈ sin(60deg) */ 1px 0 1px #000, .866px .5px 1px #000, .5px .866px 1px #000, 0 1px 1px #000, -.5px .866px 1px #000, -.866px .5px 1px #000, -1px 0 1px #000, -.866px -.5px 1px #000, -.5px -.866px 1px #000, 0 -1px 1px #000, .5px -.866px 1px #000, .866px -.5px 1px #000; } .icon { height: 3em; position: absolute; bottom: 1.6em; right: 1em; opacity: 0.8; flex-shrink: 0; } .name { margin-left: 4px; line-height: 1; font-size: 0.9em; position: absolute; bottom: 0.5em; right: 1em; opacity: 0.7; text-align: right; font-weight: bold; white-space: nowrap; overflow: visible; }
-
Embed this notice
えとねさば (tannu@sudo.mkdir.uk)'s status on Thursday, 23-Feb-2023 17:41:23 JST えとねさば @Lya 持ってこようとしたら失敗しました?
In conversation permalink
-
Embed this notice