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 = '''