fix: 导航按钮改为absolute定位,显示在内容区域右上角

This commit is contained in:
2026-04-22 18:40:56 +08:00
parent b92239fb1b
commit 9797ddf3f7

View File

@@ -1231,19 +1231,22 @@ INDEX_TEMPLATE = '''
max-height: 60vh; max-height: 60vh;
overflow-y: auto; overflow-y: auto;
padding-bottom: 20px; padding-bottom: 20px;
position: relative;
} }
.detail-nav-buttons { .detail-nav-buttons {
position: fixed; position: absolute;
right: 20px; right: 15px;
top: 50%; top: 10px;
transform: translateY(-50%);
display: flex; display: flex;
flex-direction: column;
gap: 5px; gap: 5px;
z-index: 10; z-index: 100;
background: rgba(255,255,255,0.9);
padding: 5px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} }
.detail-nav-buttons .btn { .detail-nav-buttons .btn {
padding: 8px 12px; padding: 6px 10px;
} }
.detail-modal-footer { .detail-modal-footer {
position: sticky; position: sticky;