Skip to content

Commit

Permalink
feat: lower ideal height; apply max height
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoayco committed Dec 13, 2024
1 parent 03c3bc4 commit e5b1162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/status/StatusBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const {
const { translation } = useTranslation(status, getLanguageCode())
const idealHeight = window.screen.height * 0.6
const idealHeight = window.screen.height * 0.5
const root = ref<HTMLElement | null>(null)
const { height } = useElementSize(root)
const doCollapseLongStatus = ref(false)
Expand All @@ -38,6 +38,7 @@ const vnode = computed(() => {
<template>
<div
ref="root" class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }" relative
max-h-50vh text-overflow-ellipsis overflow-hidden
>
<span
v-if="status.content"
Expand Down

0 comments on commit e5b1162

Please sign in to comment.