Add pages column and widen data entry tables
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
--font-sans: 'Inter', sans-serif;
|
||||
--font-fa: 'Vazirmatn', sans-serif;
|
||||
--font-mono: 'JetBrains Mono', monospace;
|
||||
--content-max: 1200px;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
@@ -123,7 +124,7 @@ html[lang="fa"] body {
|
||||
.nav-container {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 1200px;
|
||||
max-width: var(--content-max);
|
||||
margin: 0 auto;
|
||||
padding: 1rem 2rem;
|
||||
display: flex;
|
||||
@@ -201,15 +202,27 @@ html[lang="fa"] body {
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
@media (min-width: 1400px) {
|
||||
:root {
|
||||
--content-max: 1600px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1800px) {
|
||||
:root {
|
||||
--content-max: 1800px;
|
||||
}
|
||||
}
|
||||
|
||||
.main-content {
|
||||
max-width: 1200px;
|
||||
max-width: var(--content-max);
|
||||
margin: 2rem auto;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
.page-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
|
||||
gap: 2rem;
|
||||
align-items: start;
|
||||
}
|
||||
@@ -393,10 +406,16 @@ input:focus, select:focus {
|
||||
}
|
||||
|
||||
.data-table th, .data-table td {
|
||||
padding: 1rem 1.5rem;
|
||||
padding: 0.85rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
.data-table th, .data-table td {
|
||||
padding: 1rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.data-table th {
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
|
||||
@@ -181,10 +181,7 @@ async function adjustCount(id, field, delta) {
|
||||
const tw = document.getElementById(`tw-${id}`);
|
||||
if (tw) tw.textContent = `${order.total_weight} kg`;
|
||||
const pages = document.getElementById(`pages-${id}`);
|
||||
if (pages) {
|
||||
const unit = (translations[currentLang] || translations.en).pages_unit;
|
||||
pages.innerHTML = `${order.canister_pages + order.box_pages} <span data-i18n="pages_unit">${unit}</span>`;
|
||||
}
|
||||
if (pages) pages.textContent = order.canister_pages + order.box_pages;
|
||||
} catch (err) {
|
||||
showToast('Network error', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user