|
|
@@ -11,7 +11,7 @@ import { UiButton, UiCheckbox, UiModal } from '../../../ui';
|
|
|
<div class="agreement">
|
|
|
<ui-checkbox [checked]="flow().agreed()" [disabled]="flow().working()"
|
|
|
(checkedChange)="flow().agreed.set($event)"><span class="agreement-label">已阅读并同意</span></ui-checkbox>
|
|
|
- <span><button type="button" [disabled]="flow().working()" (click)="flow().openPanel('terms')">服务协议</button>和<button type="button" [disabled]="flow().working()" (click)="flow().openPanel('privacy')">隐私政策</button></span>
|
|
|
+ <span><button type="button" [disabled]="flow().working()" (click)="flow().openPanel('terms')">服务协议</button> 和 <button type="button" [disabled]="flow().working()" (click)="flow().openPanel('privacy')">隐私政策</button></span>
|
|
|
</div>
|
|
|
<ui-modal [open]="flow().panel() !== null" [title]="title()" size="sm"
|
|
|
(openChange)="!$event && flow().dismissPanel()">
|
|
|
@@ -38,7 +38,24 @@ import { UiButton, UiCheckbox, UiModal } from '../../../ui';
|
|
|
`,
|
|
|
styles: [`
|
|
|
:host { display: block; }
|
|
|
- .agreement { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-13); line-height: 1.7; }
|
|
|
+ /*
|
|
|
+ * 协议勾选区(2026-12-04 PC 优化):
|
|
|
+ * 原 gap:0 + margin-top:--sp-3 让「已阅读并同意」与链接文字贴死、
|
|
|
+ * 又与卡片统一 gap(--sp-5) 叠加,变成上方空隙大、下方空隙小的怪比例。
|
|
|
+ * 这里:取消自带 margin(交给卡片的 gap 统一控制),内部留出正常字间距。
|
|
|
+ */
|
|
|
+ .agreement {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 0 var(--sp-1);
|
|
|
+ margin-top: 0;
|
|
|
+ padding-top: var(--sp-1);
|
|
|
+ color: var(--muted);
|
|
|
+ font-size: var(--fs-13);
|
|
|
+ line-height: 1.7;
|
|
|
+ }
|
|
|
.agreement span { min-width: 0; }
|
|
|
.agreement-label { color: var(--muted); }
|
|
|
/* 勾选框与“已阅读并同意”合成一个 ≥44px 的点击区域 */
|