fix: hidden-Attribut von File-Inputs entfernt (verhinderte Bild-Auswahl)
- hidden auf input[type=file] blockiert label-Trigger in manchen Browsern
- CSS .row-file-input { display: none } reicht zum Verstecken
- accept="image/*" ist korrekt gesetzt
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ def build_index(articles: list[dict]) -> str:
|
|||||||
<span class="readiness">{readiness}</span>
|
<span class="readiness">{readiness}</span>
|
||||||
{image_badge}
|
{image_badge}
|
||||||
<label class="row-upload-btn" title="Bild für diesen Artikel hochladen">
|
<label class="row-upload-btn" title="Bild für diesen Artikel hochladen">
|
||||||
<input type="file" accept="image/*" class="row-file-input" onchange="uploadForRow(this, '{a['filename']}')" hidden>
|
<input type="file" accept="image/*" class="row-file-input" onchange="uploadForRow(this, '{a['filename']}')">
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
||||||
</label>
|
</label>
|
||||||
</div>\n"""
|
</div>\n"""
|
||||||
|
|||||||
Reference in New Issue
Block a user