@coda-console/friends 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/view/style.css +3 -3
package/package.json
CHANGED
package/view/style.css
CHANGED
|
@@ -120,7 +120,7 @@ details[open] > summary { margin-bottom: 10px; }
|
|
|
120
120
|
.badge.conflict { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
|
|
121
121
|
.empty { padding: 22px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
|
|
122
122
|
|
|
123
|
-
/*
|
|
123
|
+
/* 弹层:窄屏底部抽屉,宽屏居中模态(宽屏的上下留白只由 .scrim 的 padding 出,.dialog 的百分比是 padding 内的内容盒,不再扣一次);只罩住页面可见的部分(document 框架给出 visible-top / visible-height)。 */
|
|
124
124
|
.scrim { position: absolute; left: 0; right: 0; top: var(--coda-visible-top, 0); height: var(--coda-visible-height, 100%); z-index: 20;
|
|
125
125
|
display: flex; align-items: flex-end; justify-content: center; background: color-mix(in srgb, #000 34%, transparent); }
|
|
126
126
|
.dialog { width: 100%; max-height: calc(100% - 24px); display: flex; flex-direction: column; overflow: hidden;
|
|
@@ -128,7 +128,7 @@ details[open] > summary { margin-bottom: 10px; }
|
|
|
128
128
|
.grabber { flex: none; width: 36px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
|
|
129
129
|
.dlg-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
|
|
130
130
|
.dlg-head h3 { margin: 0; font-size: 1.12em; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
131
|
-
.dlg-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; }
|
|
131
|
+
.dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; }
|
|
132
132
|
.dlg-body:last-child { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
|
|
133
133
|
|
|
134
134
|
/* 迷你卡(好友详情) */
|
|
@@ -212,7 +212,7 @@ h3.sub-head, h4.sub-head { font-size: 1em; }
|
|
|
212
212
|
.hero-id { align-self: start; }
|
|
213
213
|
.friends { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
214
214
|
.scrim { align-items: center; padding: 20px; }
|
|
215
|
-
.dialog { max-width: 560px; max-height:
|
|
215
|
+
.dialog { max-width: 560px; max-height: 100%; border-radius: 14px; box-shadow: 0 22px 60px rgba(0, 0, 0, .26); }
|
|
216
216
|
.grabber { display: none; }
|
|
217
217
|
.dlg-head { padding-top: 12px; }
|
|
218
218
|
.dlg-body:last-child { padding-bottom: 12px; }
|