Skip to content

Commit 65856a9

Browse files
authored
fix: history dialog max width (#1005)
1 parent 8983bb7 commit 65856a9

File tree

1 file changed

+2
-2
lines changed
  • apps/web/src/components/CodemirrorEditor/PostSlider

1 file changed

+2
-2
lines changed

apps/web/src/components/CodemirrorEditor/PostSlider/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function handleDragEnd() {
400400

401401
<!-- 历史记录 -->
402402
<Dialog v-model:open="isOpenHistoryDialog">
403-
<DialogContent class="max-w-max">
403+
<DialogContent class="sm:max-w-4xl">
404404
<DialogHeader>
405405
<DialogTitle>历史记录</DialogTitle>
406406
<DialogDescription>每隔 30 秒自动保存,最多保留 10 条</DialogDescription>
@@ -432,7 +432,7 @@ function handleDragEnd() {
432432
<Separator orientation="vertical" class="mx-2" />
433433

434434
<!-- 右侧内容 -->
435-
<div class="space-y-2 max-h-full w-[500px] overflow-y-auto">
435+
<div class="space-y-2 max-h-full flex-1 overflow-y-auto">
436436
<p
437437
v-for="(line, idx) in (store.getPostById(currentPostId!)?.history[currentHistoryIndex].content ?? '').split('\n')"
438438
:key="idx"

0 commit comments

Comments
 (0)