Fix Builder layout and Loading... initialization bug
Layout: replace admin-container wrapper with #builder-page flex column; add min-height:0 to builder-wrap, builder-body, both panels so the inner scroll areas actually shrink correctly in a flex column. Loading...: scripts at end of body mean DOMContentLoaded may have already fired by the time the listener is registered. Check document.readyState first and call init() directly if DOM is ready. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -72,11 +72,11 @@ $page_title = $session ? 'Edit: ' . htmlspecialchars($session['name']) : 'Rosary
|
||||
<link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/setup.css">
|
||||
<link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/builder.css?v=1">
|
||||
</head>
|
||||
<body style="overflow:hidden">
|
||||
<body>
|
||||
|
||||
<div class="admin-container" style="max-width:100%;padding:0">
|
||||
<div id="builder-page">
|
||||
|
||||
<header class="admin-header" style="position:sticky;top:0;z-index:100;padding:0 24px;height:64px">
|
||||
<header class="admin-header" style="flex-shrink:0;padding:0 24px">
|
||||
<h1 style="font-size:1rem">✝ <?= htmlspecialchars($site_name) ?></h1>
|
||||
<div class="header-actions">
|
||||
<a href="<?= BASE_URL ?>/" class="btn btn-ghost" style="font-size:12px">← View Site</a>
|
||||
@@ -180,7 +180,7 @@ $page_title = $session ? 'Edit: ' . htmlspecialchars($session['name']) : 'Rosary
|
||||
|
||||
</div><!-- /builder-body -->
|
||||
</div><!-- /builder-wrap -->
|
||||
</div><!-- /admin-container -->
|
||||
</div><!-- /builder-page -->
|
||||
|
||||
|
||||
<!-- ── Create / Edit Prayer Modal ─────────────────────────────── -->
|
||||
|
||||
Reference in New Issue
Block a user