feat: 优化模型参数页底部保存栏悬浮效果

This commit is contained in:
wkc
2026-03-16 14:40:38 +08:00
parent 863700a143
commit 7a5ae3f1cc
5 changed files with 283 additions and 8 deletions

View File

@@ -200,6 +200,7 @@ export default {
.model-cards-container {
margin-bottom: 20px;
min-height: 300px;
padding-bottom: 92px;
}
.model-card {
@@ -229,15 +230,50 @@ export default {
}
.button-section {
padding: 15px;
background: #fff;
border-radius: 4px;
position: sticky;
bottom: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px 16px;
margin-top: 24px;
padding: 16px 20px;
padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
background: rgba(255, 255, 255, 0.96);
border-top: 1px solid #ebeef5;
border-radius: 12px 12px 0 0;
box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
text-align: left;
.el-button {
flex-shrink: 0;
}
.modified-tip {
margin-left: 15px;
color: #909399;
font-size: 14px;
line-height: 1.5;
}
}
@media (max-width: 768px) {
.param-config-container {
padding: 16px;
}
.model-cards-container {
padding-bottom: 104px;
}
.button-section {
padding: 14px 16px;
padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
.el-button {
width: 100%;
}
}
}
</style>

View File

@@ -204,6 +204,7 @@ export default {
.model-cards-container {
margin-bottom: 20px;
min-height: 300px;
padding-bottom: 92px;
}
.model-card {
@@ -233,15 +234,50 @@ export default {
}
.button-section {
padding: 15px;
background: #fff;
border-radius: 4px;
position: sticky;
bottom: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px 16px;
margin-top: 24px;
padding: 16px 20px;
padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
background: rgba(255, 255, 255, 0.96);
border-top: 1px solid #ebeef5;
border-radius: 12px 12px 0 0;
box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
text-align: left;
.el-button {
flex-shrink: 0;
}
.modified-tip {
margin-left: 15px;
color: #909399;
font-size: 14px;
line-height: 1.5;
}
}
@media (max-width: 768px) {
.param-config-container {
padding: 16px;
}
.model-cards-container {
padding-bottom: 104px;
}
.button-section {
padding: 14px 16px;
padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
.el-button {
width: 100%;
}
}
}
</style>