center
This commit is contained in:
1 parent
a05e4d2804
commit
c5ba6860f8
4 files changed
+23
-8
No files matched your search
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"files.exclude": {
|
||||||
|
"**/*.rpyc": true,
|
||||||
|
"**/*.rpa": true,
|
||||||
|
"**/*.rpymc": true,
|
||||||
|
"**/cache/": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -193,9 +193,9 @@ summary::-webkit-details-marker {
|
|||||||
/* Misc */
|
/* Misc */
|
||||||
.qrcode {
|
.qrcode {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-inline: auto;
|
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
align-self: center;
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
details:has(.route-list) {
|
details:has(.route-list) {
|
||||||
width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.route-item {
|
.route-item {
|
||||||
@@ -34,8 +34,8 @@ details:has(.route-list) {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: flex-start;
|
/* align-items: flex-start; */
|
||||||
width: 800px;
|
max-width: 800px;
|
||||||
padding-inline: 0;
|
padding-inline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,6 +45,7 @@ details:has(.route-list) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* Visual styles moved from components.css */
|
/* Visual styles moved from components.css */
|
||||||
background-color: var(--surface-color);
|
background-color: var(--surface-color);
|
||||||
@@ -55,8 +56,9 @@ details:has(.route-list) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.queue-grid li a {
|
.queue-grid li a {
|
||||||
align-items: center;
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
align-content: center;
|
||||||
|
/* flex: 1; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Specific override for the queue input form */
|
/* Specific override for the queue input form */
|
||||||
|
|||||||
@@ -29,10 +29,11 @@ queue_items %}
|
|||||||
{% for item in queue_items %}
|
{% for item in queue_items %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ item }}" target="_blank" rel="noreferrer noopener">
|
<a href="{{ item }}" target="_blank" rel="noreferrer noopener">
|
||||||
{{ item }} {% if not loop.index > qr_limit %}
|
{{ item }}
|
||||||
|
</a>
|
||||||
|
{% if not loop.index > qr_limit %}
|
||||||
<div class="qrcode"></div>
|
<div class="qrcode"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
@@ -40,13 +41,17 @@ queue_items %}
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener("load", (_) => {
|
window.addEventListener("load", (_) => {
|
||||||
document.querySelectorAll(".qrcode").forEach((e) => {
|
document.querySelectorAll(".qrcode").forEach((e) => {
|
||||||
const a = e.parentElement.textContent.trim();
|
// Find the sibling <a> tag within the same <li>
|
||||||
|
const link = e.parentElement.querySelector("a");
|
||||||
|
const a = link ? link.textContent.trim() : "";
|
||||||
|
if (a) {
|
||||||
new QRCode(e, {
|
new QRCode(e, {
|
||||||
text: a,
|
text: a,
|
||||||
correctLevel: QRCode.CorrectLevel.L,
|
correctLevel: QRCode.CorrectLevel.L,
|
||||||
width: 256,
|
width: 256,
|
||||||
height: 256,
|
height: 256,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user