feat(课表小组件): SyllabusWidget改版直吃AcaSyllabu oapi结构——班级下拉切换器Teleport进卡头(通用header插槽能力),行=slotNo中文数字、列=周一~周五(周末有课才追加)、单元格=班级/科目;空态换原版no-data-box.svg插画;卡头钉死#f7f8f9+overflow visible供浮层溢出
build / build (push) Successful in 1m38s
build / build (push) Successful in 1m38s
This commit is contained in:
@@ -49,7 +49,9 @@
|
||||
.widget-item {
|
||||
border-radius: 6px;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
overflow: hidden;
|
||||
// 内置组件的浮层(如课表班级切换下拉)需溢出卡片,故不裁切;
|
||||
// 卡片圆角由自身背景维持,疑似溢出子元素(iframe)自带底部圆角。
|
||||
overflow: visible;
|
||||
margin: 18px 14px 0 14px;
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
@@ -71,17 +73,34 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
// 卡头浅灰底(原版观感;合成色曾随壁纸漂移,这里显式钉死)
|
||||
background: #f7f8f9;
|
||||
// .widget-item 已改 overflow:visible,卡头底色的顶部圆角需自补
|
||||
border-radius: 6px 6px 0 0;
|
||||
color: #344449;
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
svg {
|
||||
cursor: pointer;
|
||||
}
|
||||
// 右区:内置组件 header 控件挂载点 + 关闭按钮(.widget-app-header 是 space-between,右区整体靠右)
|
||||
.widget-header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
.widget-header-extra {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
display: block;
|
||||
min-height: 150px;
|
||||
// .widget-item 已改为 overflow:visible,页面片段的底部圆角自行补齐
|
||||
border-radius: 0 0 6px 6px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user