|
|
|
|
@ -258,13 +258,16 @@ $assert(str_contains($baseStyles,
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.template-family-card[open]{z-index:70}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.template-versions{position:fixed;top:auto;right:14px;bottom:14px;left:14px;')
|
|
|
|
|
'.template-versions{position:absolute;top:calc(100% + 8px);right:auto;bottom:auto;left:0;')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));left:calc(14px + env(safe-area-inset-left,0px));')
|
|
|
|
|
'width:calc(200% + 9px);')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.template-family-card:nth-child(even) .template-versions{right:0;left:auto}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles, 'max-height:min(50dvh,360px);')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles, 'overscroll-behavior:contain;')
|
|
|
|
|
&& !str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.template-versions{position:fixed;')
|
|
|
|
|
&& !str_contains($baseStyles, 'width:min(280px,calc(100vw - 66px))')
|
|
|
|
|
&& !str_contains($baseStyles, '.template-family-card:nth-child(even) .template-versions')
|
|
|
|
|
&& str_contains($baseStyles, '.template-versions{gap:0;padding:5px 12px}')
|
|
|
|
|
&& str_contains($baseStyles,
|
|
|
|
|
'.template-version-option{min-height:44px;padding:11px 4px;border:0;border-bottom:1px solid #e4ecef;border-radius:0;background:transparent;box-shadow:none;')
|
|
|
|
|
@ -301,7 +304,7 @@ $assert(str_contains($baseStyles,
|
|
|
|
|
&& !str_contains($reinstallTemplate, '⌄')
|
|
|
|
|
&& str_contains($deployTemplate, 'class="template-family-selection" aria-hidden="true"')
|
|
|
|
|
&& str_contains($reinstallTemplate, 'class="template-family-selection" aria-hidden="true"'),
|
|
|
|
|
'Image cards must stay compact, distinguish selected and open states, and use flat desktop/mobile version menus.');
|
|
|
|
|
'Image cards must stay compact and mobile version menus must stay anchored to the selected card.');
|
|
|
|
|
$assert($catalogRenderer !== ''
|
|
|
|
|
&& str_contains($runtimeDeployScript, 'function bindTemplateVersionMenu(card, container)')
|
|
|
|
|
&& str_contains($runtimeDeployScript, 'const TEMPLATE_FAMILY_ORDER = new Map([')
|
|
|
|
|
@ -333,6 +336,7 @@ $assert($catalogRenderer !== ''
|
|
|
|
|
&& !str_contains($catalogRenderer, '"⌄"')
|
|
|
|
|
&& str_contains($catalogRenderer, 'familyCard === card ? name : "", familyCard === card ? version : "");')
|
|
|
|
|
&& str_contains($catalogRenderer, 'selectedEntry?.version || "");')
|
|
|
|
|
&& str_contains($catalogRenderer, 'card.append(summary, versions);')
|
|
|
|
|
&& str_contains($runtimeDeployScript,
|
|
|
|
|
'label.textContent = selected ? (versionLabel ? `版本 ${versionLabel}` : "已选择") : "";')
|
|
|
|
|
&& str_contains($runtimeDeployScript,
|
|
|
|
|
|