opt table truncate style
This commit is contained in:
@@ -18,7 +18,7 @@ const handleClick = () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<span
|
<span
|
||||||
class="inline-block align-middle cursor-pointer break-words whitespace-normal"
|
class="inline-block truncate align-middle cursor-pointer"
|
||||||
:class="wrapperClass"
|
:class="wrapperClass"
|
||||||
:title="text"
|
:title="text"
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
@@ -32,8 +32,8 @@ const handleClick = () => {
|
|||||||
<DialogTitle class="text-sm font-medium text-foreground">{{ previewTitle || '内容' }}</DialogTitle>
|
<DialogTitle class="text-sm font-medium text-foreground">{{ previewTitle || '内容' }}</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<div class="rounded-lg p-4 bg-muted/40 dark:bg-white/5 ring-1 ring-border/50 shadow-sm max-h-[65vh] overflow-auto">
|
<div class="rounded-lg p-4 bg-muted/40 dark:bg-white/5 ring-1 ring-border/50 shadow-sm max-h-[65vh] overflow-auto overflow-x-hidden">
|
||||||
<pre class="whitespace-pre-wrap break-words text-sm leading-relaxed text-foreground">{{ text }}</pre>
|
<pre class="whitespace-pre-wrap break-words break-all text-sm leading-relaxed text-foreground">{{ text }}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user