@@ -233,6 +233,7 @@ export default {
233233 },
234234 mounted () {
235235 try {
236+ /*
236237 const bootH = Number(localStorage.getItem('autoAlertBanner.lastHeight') || 0)
237238 if (!Number.isNaN(bootH) && bootH >= 0) {
238239 this.autoBannerHeight = bootH
@@ -241,6 +242,10 @@ export default {
241242 this.updateAffixTopVars() // ← 이 한 줄을 debouncedRecalc() 이전에 호출
242243 this.debouncedRecalc && this.debouncedRecalc()
243244 }
245+ */
246+ this .autoBannerHeight = 0
247+ document .documentElement .style .setProperty (' --autoBannerHeight' , ' 0px' )
248+ this .updateAffixTopVars ()
244249 } catch (_) {}
245250 window .addEventListener (' auto-alert-banner:height' , this .onAutoBannerHeight )
246251 window .addEventListener (' resize' , this .onResize )
@@ -397,6 +402,25 @@ export default {
397402 will- change: height;
398403}
399404
405+ banner- spacer:: before {
406+ content: " " ;
407+ position: fixed;
408+ top: 0 ;
409+ left: 0 ;
410+ right: 0 ;
411+ /* 배너가 들어올 자리(높이)만큼 완벽하게 덮어줍니다 */
412+ height: var (-- affixTopHeader, 0px );
413+ /* 시스템 배경색으로 칠해서 스크롤되는 본문을 가려줍니다 */
414+ background- color: var (-- layout- bg, #f0f2f5);
415+ z- index: 1490 ; /* 헤더(1500) 바로 밑, 본문보다는 위에 배치 */
416+ pointer- events: none; /* 클릭 방해 금지 */
417+ }
418+
419+ /* 다크모드가 켜졌을 때 가림막 색상 보정 */
420+ body .dark - mode .banner - spacer:: before {
421+ background- color: #141414 ;
422+ }
423+
400424/* 고정 헤더 사용 시 컨텐츠 상단 여백 */
401425.layout - content {
402426 & .is - header- fixed {
0 commit comments