commit 00df7cfc642828ddaf597dfd0bc3650c9e7903e8
parent 4a65626314b4ebc0e8bc9761a5362f938a7563b8
Author: Pablo Murad <pablo@pablomurad.com>
Date: Tue, 5 May 2026 17:43:58 -0300
skull9
Diffstat:
1 file changed, 60 insertions(+), 1 deletion(-)
diff --git a/lazier/web/templates/index.html b/lazier/web/templates/index.html
@@ -223,16 +223,22 @@
align-items: center;
justify-content: center;
padding: 20px;
+ padding-top: max(20px, env(safe-area-inset-top, 0px));
+ padding-right: max(20px, env(safe-area-inset-right, 0px));
+ padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
+ padding-left: max(20px, env(safe-area-inset-left, 0px));
}
.modal.open { display: flex; }
.modal-panel {
width: min(720px, 100%);
max-height: 85vh;
+ max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 48px);
overflow: auto;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--surface);
padding: 20px;
+ -webkit-overflow-scrolling: touch;
}
.modal-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.close {
@@ -243,15 +249,68 @@
cursor: pointer;
flex-shrink: 0;
}
- .preview { white-space: pre-wrap; line-height: 1.65; font-size: 0.9375rem; }
+ .preview {
+ white-space: pre-wrap;
+ line-height: 1.65;
+ font-size: 0.9375rem;
+ overflow-x: auto;
+ overflow-wrap: anywhere;
+ word-break: break-word;
+ }
.preview h1, .preview h2, .preview h3 { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 600; }
.preview hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
+ .preview pre {
+ white-space: pre;
+ overflow-x: auto;
+ max-width: 100%;
+ padding: 10px 12px;
+ border-radius: var(--radius);
+ background: #fff;
+ border: 1px solid var(--border);
+ font-size: 0.8125rem;
+ }
+ .preview code {
+ overflow-wrap: anywhere;
+ word-break: break-word;
+ }
+ .preview pre code { word-break: normal; overflow-wrap: normal; }
+ .preview table { border-collapse: collapse; }
+ .preview img { max-width: 100%; height: auto; }
@media (max-width: 560px) {
+ .shell { padding-left: 16px; padding-right: 16px; }
.mode-grid { grid-template-columns: 1fr; }
.row-actions { flex-direction: column; align-items: stretch; }
.btn { width: 100%; }
.field input, .field select { font-size: 16px; }
+ .file {
+ grid-template-columns: 1fr auto;
+ grid-template-rows: auto auto;
+ align-items: start;
+ }
+ .file > div:first-child {
+ grid-column: 1;
+ grid-row: 1;
+ min-width: 0;
+ }
+ .file > .chip {
+ grid-column: 1 / -1;
+ grid-row: 2;
+ justify-self: start;
+ }
+ .file > .remove {
+ grid-column: 2;
+ grid-row: 1;
+ align-self: start;
+ }
+ .job-head {
+ flex-direction: column;
+ align-items: stretch;
+ gap: 8px;
+ }
+ .job-head > div:first-child { flex: none; }
+ .job-head .status { align-self: flex-start; }
+ .action { min-height: 44px; }
}
</style>
</head>