fix(bug):培训中心中的和信课程点开学习页面如图所示预览查看空间高度太小,展示高度需要满屏下方留出【下载课件】按钮高度即可
deploy-hxtesting / build-and-deploy (push) Successful in 1m15s

This commit is contained in:
runny committed 2026-11-27 11:32:43 +08:00
1 parent ce24d4b9cb
commit 353f60a175
3 files changed
+70 -32

No files matched your search

@@ -755,9 +755,6 @@ onMounted(loadAll)
// 000165 复测:预览区撑满抽屉 —— 抽屉 body 拉成 flex 纵向布局,课程内容块
// 撑满剩余高度(此前仅 min-height:100%,document-preview 的 height:100% 在
// auto 高度链上不生效,预览塌陷为固定小窗)
// 000165 复测:预览区撑满抽屉 —— 抽屉 body 拉成 flex 纵向布局,课程内容块
// 撑满剩余高度(此前仅 min-height:100%,document-preview 的 height:100% 在
// auto 高度链上不生效,预览塌陷为固定小窗)
.course-catalog :deep(.t-drawer__body) {
display: flex;
flex-direction: column;
@@ -771,19 +768,30 @@ onMounted(loadAll)
flex: 1;
min-height: 0;
// t-loading 包裹层承载预览的 flex 撑满
:deep(.t-loading) {
// t-loading 组件包装层的真实 DOM 类是 t-loading__parent > t-loading__content
// (此前误写 .t-loading 未命中,高度链断裂预览塌陷),拉成纵向 flex 撑满
:deep(.t-loading__parent) {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
> .document-preview {
.t-loading__content {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
}
// 兜底:预览组件给确定性高度(视口 - 抽屉头/元信息/按钮行/留白),
// 即使 flex 高度链断裂也满屏,底部仅保留「下载课件」按钮一行高度
:deep(.document-preview) {
flex: 1;
min-height: 0;
height: calc(100vh - 210px);
}
&__meta {
margin: 0;
color: var(--td-text-color-secondary);