This commit is contained in:
kakkokari-gtyih 2025-05-04 19:32:44 +09:00
parent 095a47d63b
commit 1d3d70f760
1 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<div <div
:class="$style.root" :class="$style.root"
:style="tickerColorsRef" :style="tickerColors"
> >
<img :class="$style.icon" :src="tickerInfoRef.iconUrl"/> <img :class="$style.icon" :src="tickerInfo.iconUrl"/>
<div :class="$style.name">{{ tickerInfoRef.name }}</div> <div :class="$style.name">{{ tickerInfo.name }}</div>
</div> </div>
</template> </template>
@ -20,8 +20,8 @@ import type { MkInstanceTickerProps } from '@/components/MkInstanceTicker.impl.j
const props = defineProps<MkInstanceTickerProps>(); const props = defineProps<MkInstanceTickerProps>();
const tickerInfoRef = computed(() => getTickerInfo(props)); const tickerInfo = computed(() => getTickerInfo(props));
const tickerColorsRef = computed(() => getTickerColors(tickerInfoRef.value)); const tickerColors = computed(() => getTickerColors(tickerInfo.value));
</script> </script>
<style lang="scss" module> <style lang="scss" module>