Fix: Modal-Footer Layout Routes + Forum
Routen-Footer: - 2-Zeilen-Layout: Aktions-Buttons oben, Schließen full-width unten - GPX/Teilen/Navi als Text-Icon, Freund/Sichtbarkeit/Löschen als Icon-only rechts - Keine Overflow/Clipping mehr Forum-Footer: - flex-direction:column Layout mit margin-left:auto für Icon-Buttons links - Löschen/Bearbeiten (Icon) links, Schließen/Antworten rechts - flex:1 Spacer-Problem behoben
This commit is contained in:
parent
b1053198de
commit
e5cbe879ff
4 changed files with 24 additions and 17 deletions
|
|
@ -386,12 +386,17 @@ window.Page_forum = (() => {
|
|||
`;
|
||||
|
||||
const footer = _appState.user ? `
|
||||
${(isOwn || isMod) ? `<button type="button" class="forum-icon-btn forum-icon-btn--danger" id="ft-delete-thread" title="Löschen">${UI.icon('trash')}</button>` : ''}
|
||||
${isOwn ? `<button type="button" class="forum-icon-btn" id="ft-edit-thread" title="Bearbeiten">${UI.icon('pencil-simple')}</button>` : ''}
|
||||
<div style="flex:1"></div>
|
||||
<button type="button" class="btn btn-secondary btn-sm" id="ft-close">Schließen</button>
|
||||
${(!thread.is_locked && _appState.user) ? `<button type="button" class="btn btn-primary btn-sm" id="ft-reply">Antworten</button>` : ''}
|
||||
` : `<button type="button" class="btn btn-primary btn-sm" id="ft-close">Schließen</button>`;
|
||||
<div style="display:flex;flex-direction:column;gap:var(--space-2);width:100%">
|
||||
<div style="display:flex;gap:var(--space-2);align-items:center">
|
||||
${(isOwn || isMod) ? `<button type="button" class="forum-icon-btn forum-icon-btn--danger" id="ft-delete-thread" title="Löschen">${UI.icon('trash')}</button>` : ''}
|
||||
${isOwn ? `<button type="button" class="forum-icon-btn" id="ft-edit-thread" title="Bearbeiten">${UI.icon('pencil-simple')}</button>` : ''}
|
||||
<div style="margin-left:auto;display:flex;gap:var(--space-2)">
|
||||
<button type="button" class="btn btn-secondary btn-sm" id="ft-close">Schließen</button>
|
||||
${(!thread.is_locked && _appState.user) ? `<button type="button" class="btn btn-primary btn-sm" id="ft-reply">Antworten</button>` : ''}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
` : `<button type="button" class="btn btn-primary w-full" id="ft-close">Schließen</button>`;
|
||||
|
||||
UI.modal.open({ title: `${UI.icon('chat-circle-dots')} ${_esc(thread.titel)}`, body, footer });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue