From 37923caf265f1cc52f358205f92d9dd1b0b97e6c Mon Sep 17 00:00:00 2001
From: Ari Sulistiono
')!=1 or probe_tag in canonical_html: raise SystemExit('Approved Pages profiler injection must have exactly one body') canonical_html=canonical_html.replace('',probe_tag+'\n',1) +canonical_html=apply_authoritative_fx_power(canonical_html) # Stage C: compile only DEPLOYED copies, never modify locked V28 source # owners or approved PNG artwork. No new CSS/override or second renderer. canonical_html,css_compilation=optimize_assets(canonical_html,buttons_dest/'assets',runtime_bundle=True) diff --git a/scripts/compile_approved_css.py b/scripts/compile_approved_css.py index 0410dca59..dfb6048c3 100644 --- a/scripts/compile_approved_css.py +++ b/scripts/compile_approved_css.py @@ -18,7 +18,10 @@ from pathlib import Path import re -LINK = re.compile(r'(. Stage D removes 17 links; +# matching only their closing quote left 18 literal '>' rendered above the GUI, +# most visibly in mobile viewport. Preserve all attributes/order fail-closed. +LINK = re.compile(r'()', re.I) PROPERTY = re.compile(r"^\s*(--[A-Za-z0-9_-]+|[-A-Za-z_][-A-Za-z0-9_]*)\s*:", re.S) IMPORTANT = re.compile(r"!\s*important\s*$", re.I) CONTAINER = re.compile(r"^@(media|supports|container|layer|scope)(?=\s|\()", re.I) diff --git a/site/preview-v2/assets/mixer-console-foundation.css b/site/preview-v2/assets/mixer-console-foundation.css index c79bee3f8..d738f7a98 100644 --- a/site/preview-v2/assets/mixer-console-foundation.css +++ b/site/preview-v2/assets/mixer-console-foundation.css @@ -6,7 +6,7 @@ font:11px/1.32 "Segoe UI",Arial,sans-serif; } *{box-sizing:border-box} -html,body{width:100%;height:100%;min-width:760px;min-height:540px;margin:0;overflow:hidden;background:#202123;color:var(--ink)} +html,body{width:100%;height:100%;min-width:min(760px,100%);min-height:540px;margin:0;overflow:hidden;background:#202123;color:var(--ink)} button,input,select{font:inherit;color:inherit} button{cursor:pointer} button:focus-visible,input:focus-visible,select:focus-visible{outline:1px solid #8cc5da;outline-offset:-1px} @@ -31,4 +31,30 @@ button:disabled{opacity:.45;cursor:not-allowed} .mixer-title .accent{height:12px;width:3px;background:#55afcb} .mixer-title .panel-name{font-weight:600} .mixer-title .panel-sub{color:#8f9295} -.mixer-title .right{margin-left:auto;color:#808488;font-size:10px} \ No newline at end of file +.mixer-title .right{margin-left:auto;color:#808488;font-size:10px} + +/* Official /preview/ on phone: the desktop console remains a real, scrollable + mixer, not a second mobile skin. All selectors belong to this foundation + owner; no CSS override file, repeated > arrows or changed desktop controls. + More stays reachable, and its popup must not be clipped by toolbar scroll. */ +@media (max-width:759px){ + .app .window-title{min-width:0;gap:8px;overflow:hidden} + .app .window-title .study{display:none} + .app .window-title .file-name{min-width:0;max-width:55vw;overflow:hidden;text-overflow:ellipsis} + .app .command-bar{ + max-width:100%;min-width:0; + overflow-x:auto;overflow-y:hidden; + touch-action:pan-x;overscroll-behavior-x:contain; + -webkit-overflow-scrolling:touch; + scrollbar-width:thin; + } + .app .command-bar .more-tools{ + order:-1;margin-left:0;left:0;position:sticky;z-index:2; + } + .app .command-bar .more-tools-panel{ + position:fixed;left:8px;right:8px;top:64px;width:auto; + max-height:calc(100dvh - 76px);overflow:auto;z-index:60; + } + .app .console-pane{min-width:0} + .app .tracks-viewport{min-width:0} +} \ No newline at end of file diff --git a/tests/approved_css_stage_c_compiler_test.py b/tests/approved_css_stage_c_compiler_test.py index 5fb9039f2..40e21905c 100644 --- a/tests/approved_css_stage_c_compiler_test.py +++ b/tests/approved_css_stage_c_compiler_test.py @@ -153,6 +153,21 @@ def test_stage_d_single_cssom_preserves_owner_order_and_relative_assets(self): with self.assertRaisesRegex(ValueError,"@import"): css.compile_runtime_bundle([("a.css",'@import url("other.css");.x{opacity:1}')]) + def test_stage_d_consumes_complete_link_tags_no_stray_gt_in_mobile_body(self): + # Regression: previous LINK matched closing quote but not '>'. After + # removing 18 tags the browser displayed '> > > ...' before ArSonMix. + owners = "".join( + f'' + for i in range(18) + ) + document = "
" + owners + "