UI: Admin-Buttons an Header-Button-Stil angepasst (Löschen/Umbenennen: grau, Logout: rot wie Panic)

This commit is contained in:
vibe-bot 2025-08-09 01:50:25 +02:00
parent 22dc34ce81
commit 7063a86836

View file

@ -277,7 +277,7 @@ export default function App() {
<span className="badge">Ausgewählt: {selectedCount}</span> <span className="badge">Ausgewählt: {selectedCount}</span>
{selectedCount > 0 && ( {selectedCount > 0 && (
<button <button
className="tab" className="bg-gray-700 hover:bg-gray-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300"
onClick={async ()=>{ onClick={async ()=>{
try { try {
const toDelete = Object.entries(selectedSet).filter(([,v])=>v).map(([k])=>k); const toDelete = Object.entries(selectedSet).filter(([,v])=>v).map(([k])=>k);
@ -304,7 +304,7 @@ export default function App() {
}} /> }} />
)} )}
<div className="flex-1" /> <div className="flex-1" />
<button className="tab" onClick={async ()=>{ try{ await adminLogout(); setIsAdmin(false); clearSelection(); } catch{} }}>Logout</button> <button className="bg-red-600 hover:bg-red-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300" onClick={async ()=>{ try{ await adminLogout(); setIsAdmin(false); clearSelection(); } catch{} }}>Logout</button>
</div> </div>
)} )}
</div> </div>
@ -464,7 +464,7 @@ function RenameInline({ onSubmit }: RenameInlineProps) {
onKeyDown={(e) => { if (e.key === 'Enter') void submit(); }} onKeyDown={(e) => { if (e.key === 'Enter') void submit(); }}
style={{ color: '#000000' }} style={{ color: '#000000' }}
/> />
<button type="button" className="tab" onClick={() => void submit()}>Umbenennen</button> <button type="button" className="bg-gray-700 hover:bg-gray-600 text-white font-bold py-3 px-6 rounded-lg transition duration-300" onClick={() => void submit()}>Umbenennen</button>
</div> </div>
); );
} }