From 81fca5b2dd8d99f237b6f65839e25fc07e86e7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:19:38 +0800 Subject: [PATCH] Add files via upload --- web/templates/api-docs.html | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/web/templates/api-docs.html b/web/templates/api-docs.html index 3bbf4264..75fbbee0 100644 --- a/web/templates/api-docs.html +++ b/web/templates/api-docs.html @@ -516,20 +516,36 @@ min-width: 150px; } - /* 参数名、类型、必需、示例列不换行 */ + /* 参数名、类型、必需列不换行 */ .api-params-table th:nth-child(1), .api-params-table td:nth-child(1), .api-params-table th:nth-child(2), .api-params-table td:nth-child(2), .api-params-table th:nth-child(4), - .api-params-table td:nth-child(4), - .api-params-table th:nth-child(5), - .api-params-table td:nth-child(5) { + .api-params-table td:nth-child(4) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + /* 示例列允许换行,完整显示 */ + .api-params-table th:nth-child(5), + .api-params-table td:nth-child(5) { + white-space: normal; + word-wrap: break-word; + overflow-wrap: break-word; + overflow: visible; + } + + /* 确保示例列中的code标签也能完整显示 */ + .api-params-table td:nth-child(5) code { + white-space: normal; + word-wrap: break-word; + overflow-wrap: break-word; + display: inline-block; + max-width: 100%; + } + /* 描述列允许换行,但保持水平方向 */ .api-params-table th:nth-child(3), .api-params-table td:nth-child(3) {