diff --git a/frontend/src/widgets/others/ClockCard.vue b/frontend/src/widgets/others/ClockCard.vue index b63d3abc..8b0c9838 100644 --- a/frontend/src/widgets/others/ClockCard.vue +++ b/frontend/src/widgets/others/ClockCard.vue @@ -14,8 +14,6 @@ const getDate = () => dayjs().format("YYYY/MM/DD dddd"); const time = ref(getTime()); const date = ref(getDate()); -const sizeTime = ref(`font-size: 60px;`); -const sizeDate = ref(`font-size: 10px;`); let timer: NodeJS.Timer | null; @@ -23,8 +21,6 @@ onMounted(() => { timer = setInterval(() => { time.value = getTime(); }, 1000); - sizeTime.value = (`font-size: ${(getCurrentInstance()?.refs.boxTime).offsetHeight * .6}px;`); - sizeDate.value = (`font-size: ${(getCurrentInstance()?.refs.boxTime).offsetHeight * .1}px;`); }); onUnmounted(() => { @@ -38,11 +34,14 @@ onUnmounted(() => {