Skip to content

Commit e5b1162

Browse files
committed
feat: lower ideal height; apply max height
1 parent 03c3bc4 commit e5b1162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/status/StatusBody.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
1414
const { translation } = useTranslation(status, getLanguageCode())
1515
16-
const idealHeight = window.screen.height * 0.6
16+
const idealHeight = window.screen.height * 0.5
1717
const root = ref<HTMLElement | null>(null)
1818
const { height } = useElementSize(root)
1919
const doCollapseLongStatus = ref(false)
@@ -38,6 +38,7 @@ const vnode = computed(() => {
3838
<template>
3939
<div
4040
ref="root" class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }" relative
41+
max-h-50vh text-overflow-ellipsis overflow-hidden
4142
>
4243
<span
4344
v-if="status.content"

0 commit comments

Comments
 (0)