From df9ea4e8921e5385cc5d69256d3cd6f57c9dab79 Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Mon, 23 Jun 2025 23:44:20 +0800 Subject: [PATCH] 111 --- LTEMvcApp/Views/Home/Logs.cshtml | 114 ++++++++++++++++++++++++++++++- 1 file changed, 112 insertions(+), 2 deletions(-) diff --git a/LTEMvcApp/Views/Home/Logs.cshtml b/LTEMvcApp/Views/Home/Logs.cshtml index 6569974..3cdc3b0 100644 --- a/LTEMvcApp/Views/Home/Logs.cshtml +++ b/LTEMvcApp/Views/Home/Logs.cshtml @@ -79,6 +79,46 @@ white-space: nowrap; } + /* 排序相关样式 */ + .sortable-header { + cursor: pointer; + user-select: none; + display: flex; + align-items: center; + gap: 4px; + transition: background-color 0.2s; + } + + .sortable-header:hover { + background-color: #e9ecef; + border-radius: 3px; + padding: 2px 4px; + margin: -2px -4px; + } + + .sort-icon { + font-size: 0.8em; + opacity: 0.5; + transition: opacity 0.2s; + } + + .sortable-header:hover .sort-icon { + opacity: 1; + } + + .sort-icon.active { + opacity: 1; + color: #007bff; + } + + .sort-icon.asc::after { + content: " ▲"; + } + + .sort-icon.desc::after { + content: " ▼"; + } + /* 右侧日志详情 */ .log-detail-panel { flex-grow: 1; @@ -382,7 +422,10 @@