@@ -163,10 +163,10 @@ test("sidebar entry portals above the workspaces region with footer fallback", (
163163// Three alignment/softness guarantees born from field feedback: (a) the
164164// portalled entry keeps tracking the live New-Session class (host and skin
165165// rewrite it asynchronously, so a mount-time snapshot goes stale), (b) it
166- // fills the same width as that button and inherits its native centering,
166+ // inherits that button's width and margins along with its native centering,
167167// (c) the toolbar dropdown escapes the transform stacking trap — the
168168// container needs the z-index because transform creates the context.
169- test ( "entry tracks native class, fills native width , and lifts the toolbar dropdown" , ( ) => {
169+ test ( "entry tracks native class, inherits native sizing , and lifts the toolbar dropdown" , ( ) => {
170170 assert . ok (
171171 clientSource . includes ( "new MutationObserver" ) ,
172172 "the entry must re-sync the copied class via MutationObserver"
@@ -175,9 +175,14 @@ test("entry tracks native class, fills native width, and lifts the toolbar dropd
175175 clientSource . includes ( 'attributeFilter: ["class"]' ) ,
176176 "the observer must watch class attribute changes"
177177 ) ;
178+ assert . doesNotMatch (
179+ clientSource ,
180+ / \. m n e m e - t o p e n t r y - n a t i v e \{ (?: [ ^ } ] * ; ) ? w i d t h : / ,
181+ "the entry must use the native button width, which reserves its horizontal margins"
182+ ) ;
178183 assert . ok (
179- / \. m n e m e - t o p e n t r y - n a t i v e \{ w i d t h : 1 0 0 % ; / . test ( clientSource ) ,
180- "the entry button must fill the same width as the New-Session row "
184+ clientSource . includes ( ". mneme-topentry{display:flex;flex-direction:column}" ) ,
185+ "the entry wrapper must stretch the native button within a column flex layout "
181186 ) ;
182187 assert . equal (
183188 clientSource . includes ( ".mneme-topentry-native .mneme-topentry-label{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}" ) ,
0 commit comments