π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
improve table design
Smaug67397bc9d3319bc5
diff --git a/frontend/app/styles/theme.scss b/frontend/app/styles/theme.scssindex 8eb8fbd6..8ed77606 100644--- a/frontend/app/styles/theme.scss+++ b/frontend/app/styles/theme.scss@@ -189,35 +189,50 @@ p {}+table {- position: relative;- display: block; // Add this line to make the table scrollablemax-width: 100%;- font-size: 0.9em;+ margin: 1.5rem 0;border-collapse: collapse;- overflow-x: auto;+ font-size: 0.95rem;+ border-radius: 12px;+ overflow: hidden;+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);+}- thead {- border-bottom: 1px solid var(--border-color);- }+/* Header */+thead th {+ padding: 0.9rem 1rem;+ text-align: left;+ font-weight: 500;+ font-size: 0.8rem;+ letter-spacing: 0.03em;+ text-transform: uppercase;+ color: var(--font-color-light);+ background-color: var(--border-color-light);+ border-bottom: 1px solid var(--border-color);+}- th,- td {- padding: 10px 15px;- }+/* Cells */+tbody td {+ padding: 0.5rem 1rem;+ color: var(--font-color-dark);+ border-bottom: 1px solid var(--border-color);+}- tbody tr {- border-top: 1px solid var(--border-color);- }+/* Last row without separation */+tbody tr:last-child td {+ border-bottom: none;+}- tbody tr:nth-of-type(even) {- background-color: var(--bg-contrast);- }+/* Color background of 1 row of 2 */+tbody tr:nth-child(odd) {+ background-color: var(--bg-ui-light);+}- @media (width <=600px) {- min-width: 300px;- zoom: 0.9;- }+/* Subtle hover */+tbody tr {+ transition: background-color 0.15s ease;}textarea {