fix: add missing bootstrap require in markdown-cheatsheet-fragment.php, add bottom padding to dialog

This commit is contained in:
Pontoporeia
2026-07-03 15:24:07 +02:00
parent 00a106138e
commit e6a989bb36
7 changed files with 30 additions and 175 deletions
@@ -4,6 +4,8 @@
* Rendered as a <dialog> element; caller should call .showModal() after swap.
*/
require_once __DIR__ . '/../../bootstrap.php';
$rows = [
[
'syntax' => '# Titre 1',
+1 -1
View File
@@ -2335,7 +2335,7 @@ th.admin-ap-col {
.md-cheatsheet-dialog {
border: 1px solid var(--border);
border-radius: var(--radius-m, 8px);
padding: 0;
padding: 0 0 var(--space-m);
max-width: 640px;
width: 90vw;
box-shadow: 0 8px 32px rgba(0,0,0,0.18);
+3 -3
View File
@@ -20,8 +20,8 @@
minmax(9rem, 1fr)
minmax(7rem, 1fr)
minmax(8rem, 1fr)
minmax(min-content, 1fr);
grid-template-rows: auto 1fr;
minmax(3rem, 0.45fr);
grid-template-rows: auto minmax(0, 1fr);
gap: var(--space-s);
justify-content: space-between;
padding: 0;
@@ -69,7 +69,7 @@
overflow-wrap: break-word;
}
.repertoire-col > ul {
.repertoire-col .rep-accordion__panel > ul {
grid-row: 2;
overflow-y: auto;
overflow-x: hidden;
+2 -55
View File
@@ -52,6 +52,8 @@
height: auto;
display: block;
border-radius: var(--radius);
user-select: none;
-webkit-user-drag: none;
}
.tfe-file-item embed,
@@ -161,12 +163,6 @@
margin: 0;
}
/* PDF fallback download link */
.tfe-pdf-fallback {
font-size: var(--step--1);
margin: var(--space-3xs) 0 0;
}
/* Audio player */
.tfe-audio {
width: 100%;
@@ -174,55 +170,6 @@
display: block;
}
/* Download-only files */
.tfe-download-file {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-s) var(--space-m);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius);
flex-wrap: wrap;
}
.tfe-download-link {
display: flex;
align-items: center;
gap: var(--space-xs);
font-size: var(--step--1);
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
word-break: break-all;
}
.tfe-download-link:hover {
color: var(--accent-primary);
text-decoration: none;
}
.tfe-download-icon {
font-size: 1.3rem;
line-height: 1;
flex-shrink: 0;
}
.tfe-download-size {
font-size: var(--step--2);
color: var(--text-tertiary);
margin-left: auto;
}
.tfe-pdf-fallback a {
color: var(--text-primary);
text-decoration: none;
}
.tfe-pdf-fallback a:hover {
color: var(--accent-primary);
}
/* "Not available" and "no files" notices */
.tfe-restricted,
.tfe-no-files {