From ef822d0eba202c75cb32036befb374a0f6634c09 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Wed, 22 Apr 2026 22:47:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E8=BE=91=E5=92=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=BC=B9=E6=A1=86=E4=BC=98=E5=8C=96=20-=20=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=8C=89=E9=92=AE=E3=80=81=E5=9B=BA=E5=AE=9A=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E3=80=81=E6=8B=96=E6=8B=BD=E7=BC=A9=E6=94=BE=E3=80=81?= =?UTF-8?q?=E5=A4=A7=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xian_favor/api.py | 154 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 148 insertions(+), 6 deletions(-) diff --git a/xian_favor/api.py b/xian_favor/api.py index 04467f8..f17b561 100644 --- a/xian_favor/api.py +++ b/xian_favor/api.py @@ -1267,6 +1267,32 @@ INDEX_TEMPLATE = ''' display: flex; align-items: center; } + /* 编辑和新增弹框样式 */ + #addModal .modal-dialog, #editModal .modal-dialog { + max-width: 95vw; + min-width: 400px; + width: 800px; + margin: 10px auto; + } + #addModal .modal-content, #editModal .modal-content { + height: calc(100vh - 20px); + max-height: calc(100vh - 20px); + } + .add-modal-body, .edit-modal-body { + max-height: calc(100vh - 150px); + overflow-y: auto; + padding: 15px; + } + .add-modal-footer, .edit-modal-footer { + position: sticky; + bottom: 0; + background: #fff; + border-top: 1px solid #dee2e6; + z-index: 10; + padding: 10px 15px; + display: flex; + align-items: center; + } .star-btn { font-size: 11px; } .status-pending { color: #ffc107; } .status-in_progress { color: #17a2b8; } @@ -1478,7 +1504,7 @@ INDEX_TEMPLATE = '''