fix: update button types for better accessibility and enhance incremental gallery updates

This commit is contained in:
Yusuf İpek
2026-02-06 10:49:01 +03:00
parent 97106dc7b1
commit 4a1500d4f2
2 changed files with 197 additions and 10 deletions
+4 -4
View File
@@ -32,7 +32,7 @@
<div class="reference-slots" id="referenceSlots">
<!-- Slots rendered dynamically by JS -->
</div>
<button class="btn btn-ghost" id="clearReferences">Clear All References</button>
<button type="button" class="btn btn-ghost" id="clearReferences">Clear All References</button>
</div>
<!-- Model Selection -->
@@ -105,7 +105,7 @@
<div class="config-section">
<h3>OpenRouter API Key</h3>
<input type="password" id="apiKey" placeholder="sk-or-..." class="text-input">
<button class="btn btn-ghost" id="saveApiKey">Save Key</button>
<button type="button" class="btn btn-ghost" id="saveApiKey">Save Key</button>
</div>
</aside>
@@ -118,7 +118,7 @@
rows="3"></textarea>
<div class="prompt-actions">
<span class="char-count" id="charCount">0 chars</span>
<button class="btn btn-primary" id="generateBtn">
<button type="button" class="btn btn-primary" id="generateBtn">
Generate
</button>
</div>
@@ -129,7 +129,7 @@
<div class="gallery-header">
<h2>Generated Images</h2>
<div class="gallery-actions">
<button class="btn btn-ghost" id="clearGallery">Clear Gallery</button>
<button type="button" class="btn btn-ghost" id="clearGallery">Clear Gallery</button>
</div>
</div>
<div class="gallery" id="gallery">