fix: allow safe fresh-clone DryRun builds
This commit is contained in:
@@ -203,6 +203,7 @@
|
||||
<header class="workspace-header">
|
||||
<div class="brand">
|
||||
<span class="brand-wordmark-plate">
|
||||
<span class="brand-wordmark-fallback">매일경제TV</span>
|
||||
<img class="brand-wordmark" src="Brand/logo.png" width="176" height="43"
|
||||
alt="매일경제TV" draggable="false">
|
||||
</span>
|
||||
|
||||
@@ -945,6 +945,23 @@ input[type="checkbox"], input[type="radio"] { accent-color: var(--ui-accent); }
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .08);
|
||||
}
|
||||
.brand-wordmark-fallback,
|
||||
.brand-wordmark {
|
||||
grid-area: 1 / 1;
|
||||
}
|
||||
.brand-wordmark-fallback {
|
||||
visibility: hidden;
|
||||
color: #172033;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -.045em;
|
||||
}
|
||||
.brand-wordmark-plate.wordmark-fallback-active .brand-wordmark-fallback {
|
||||
visibility: visible;
|
||||
}
|
||||
.brand-wordmark-plate.wordmark-fallback-active .brand-wordmark {
|
||||
display: none;
|
||||
}
|
||||
.brand-wordmark {
|
||||
display: block;
|
||||
width: 142px;
|
||||
|
||||
@@ -17,6 +17,19 @@
|
||||
const shell = document.querySelector(".operator-shell");
|
||||
const splitter = document.getElementById("workspace-splitter");
|
||||
const playlistPanel = document.querySelector(".playlist-panel");
|
||||
const brandWordmark = document.querySelector("img.brand-wordmark");
|
||||
const brandWordmarkPlate = brandWordmark?.closest(".brand-wordmark-plate");
|
||||
|
||||
function showBrandWordmarkFallback() {
|
||||
brandWordmarkPlate?.classList.add("wordmark-fallback-active");
|
||||
}
|
||||
|
||||
if (brandWordmark) {
|
||||
brandWordmark.addEventListener("error", showBrandWordmarkFallback, { once: true });
|
||||
if (brandWordmark.complete && brandWordmark.naturalWidth === 0) {
|
||||
showBrandWordmarkFallback();
|
||||
}
|
||||
}
|
||||
|
||||
if (!region || !navigation || !navigationItems || !toggle || !toggleLabel ||
|
||||
!stockTab || !settingsTab || !stockWorkspace || !catalogWorkspace ||
|
||||
|
||||
Reference in New Issue
Block a user