fix: 查询结果单元格不再截断,完整显示内容
去掉 max-w-[200px] truncate 限制,改为 whitespace-pre-wrap break-words 自然换行,LRANGE 等长文本完整展示
This commit is contained in:
1 parent
7f09ef8e1a
commit
add9416c0e
1 file changed
+1
-1
@@ -552,7 +552,7 @@ export default function QueriesPage() {
|
||||
const cellValue = row[col] ?? '';
|
||||
const { text: displayText, isJson } = formatCellValue(cellValue);
|
||||
return (
|
||||
<td key={col} className={`px-3 py-2 text-xs ${isJson ? 'max-w-[400px] whitespace-pre-wrap break-all font-mono text-[11px] leading-relaxed' : 'max-w-[200px] truncate'}`} title={String(cellValue)}>
|
||||
<td key={col} className={`px-3 py-2 text-xs ${isJson ? 'max-w-[500px] whitespace-pre-wrap break-all font-mono text-[11px] leading-relaxed' : 'whitespace-pre-wrap break-words'}`} title={String(cellValue)}>
|
||||
{isSensitive ? <span className="text-yellow-400 italic">{maskData(String(cellValue))}</span> :
|
||||
isJson ? <span className="text-blue-300">{displayText}</span> :
|
||||
String(cellValue)}
|
||||
|
||||
Reference in new issue
Block a user