Fix header image preview aspect ratio in setup wizard
Changed from fixed 120px height to aspect-ratio 3:1 to match the recommended 1200x400 dimensions, preventing heavy cropping. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ced4082993
commit
3c0311c1d5
1 changed files with 1 additions and 1 deletions
|
|
@ -2222,7 +2222,7 @@
|
||||||
<li><strong>Content:</strong> Your restaurant, food, or branding</li>
|
<li><strong>Content:</strong> Your restaurant, food, or branding</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="headerUploadPreview" style="width:100%;height:120px;background:#333;border-radius:8px;margin:12px 0;background-size:cover;background-position:center;display:${hasAutoHeader ? 'block' : 'none'};"></div>
|
<div id="headerUploadPreview" style="width:100%;aspect-ratio:3/1;background:#333;border-radius:8px;margin:12px 0;background-size:cover;background-position:center;display:${hasAutoHeader ? 'block' : 'none'};overflow:hidden;"></div>
|
||||||
<div style="display:flex;gap:12px;margin-top:12px;">
|
<div style="display:flex;gap:12px;margin-top:12px;">
|
||||||
<label class="btn btn-secondary" style="cursor:pointer;flex:1;text-align:center;">
|
<label class="btn btn-secondary" style="cursor:pointer;flex:1;text-align:center;">
|
||||||
<input type="file" id="wizardHeaderFile" accept="image/png,image/jpeg,image/jpg" style="display:none;" onchange="previewWizardHeader(this)">
|
<input type="file" id="wizardHeaderFile" accept="image/png,image/jpeg,image/jpg" style="display:none;" onchange="previewWizardHeader(this)">
|
||||||
|
|
|
||||||
Reference in a new issue