AlistGo / AlistGo/alist

默认配置 txt 预览问题

Đang mở
#8,435 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Go
Star
50.2k
Fork
7.9k
Merge trung bình
7 ngày 21 giờ
Pull request đã merge (30 ngày)
6

Mô tả

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [x] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [x] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

### AList Version / AList 版本

v3.44.0

### Driver used / 使用的存储驱动

123云盘

### Describe the bug / 问题描述

默认配置下会使用 markdown 预览器预览 txt 文件

稍微大点的 txt 8-9MB,就会直接卡死浏览器,连切换到下载选项都来不及

**建议默认将 txt 移除 markdown 预览选项,markdown 默认情况下应该仅预览 .md 文件**

**也可以考虑添加一个 仅预览 [不带编辑功能]的 txt 预览器并做为默认选项,以减少卡顿**

![Image](https://github.com/user-attachments/assets/0979443d-379a-4af4-9f35-85cf2864e27e)

### Reproduction / 复现链接

与问题无关

### Config / 配置

与问题无关

### Logs / 日志

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.