From 7dbaefb38194e0f3504f695df9d90dd02657279d Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Tue, 6 Oct 2026 09:49:16 -0400 Subject: [PATCH] fix: page de base - titre au-dessus du tableau, tableau au ras du sidebar (v7.49.2) - .db-first (page_editor_scripts._applyLayout) quand le premier bloc est une base embarquee : .blocks-container/.page-title-block passent a margin:0 + padding-left:var(--space-lg) au lieu de max-width:900px centre -> le tableau demarre a x=256 (marge topbar) au lieu de x=694 sur 1920px (mesure Playwright). - .block-embed-collection { max-width:100%; overflow:hidden } : l'embed ne deborde plus de sa colonne (les popovers fixes restent hors du clipping). - page_editor_collection.html : h1.database-page-title au-dessus du conteneur (les pages collection dediees n'avaient pas de titre). - Bump VERSION/main.py 7.49.2, CHANGELOG, WORKLOAD, OpenAPI regenere. - Instance locale flowdeck-final rebuildee flowdeck:v7.49.2 :8081, health OK. --- CHANGELOG.md | 18 ++++++++++++++++ VERSION | 2 +- WORKLOAD.md | 2 +- app/main.py | 2 +- app/templates/page_editor_collection.html | 1 + docs/openapi-v2.json | 2 +- static/css/app.css | 26 +++++++++++++++++++++++ static/js/page_editor_scripts.js | 4 ++++ 8 files changed, 53 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a99644..be27cbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog - FlowDeck +## v7.49.2 (2026-10-05) — Pages de base : titre au-dessus, tableau à gauche + +### Fixed + +- **Le tableau d'une page de base commençait au 1/3 de la page** — une base + créée depuis un document est un bloc `embed collection` rendu dans la + colonne éditeur `.blocks-container` (`max-width: 900px; margin: 0 auto`) : + centrée sur un grand écran, donc décalée loin du sidebar (mesuré x=694 sur + 1920 px). Nouvelle classe `.db-first` sur le wrapper éditeur quand le + premier bloc est une base : titre et blocs passent à `margin: 0` + + `padding-left: var(--space-lg)` (liseré de la topbar) — tableau au ras du + sidebar (x=256 mesuré), titre au-dessus, plus de débordement de l'embed + (`max-width: 100%`, le scroll horizontal reste géré par `.db-table-wrapper`). +- **Les pages de base dédiées (`content_format='collection'`) n'avaient pas + de titre** — `page_editor_collection.html` rend le tableau sans en-tête de + page. Un `

` est ajouté au-dessus du + conteneur, avec le même liseré gauche que le tableau. + ## v7.49.1 (2026-10-05) — Tableau des bases aligné sur le titre ### Fixed diff --git a/VERSION b/VERSION index a4ab940..edbd674 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.49.1 +7.49.2 diff --git a/WORKLOAD.md b/WORKLOAD.md index ae65bc1..e9b865c 100644 --- a/WORKLOAD.md +++ b/WORKLOAD.md @@ -1,6 +1,6 @@ # WORKLOAD — FlowDeck Notion Clone -> **Début**: 2026-07-08 | **Version**: v7.49.1 (tableau des bases aligné sur le titre, marge gauche = topbar) | **Statut**: EN COURS 🔄 +> **Début**: 2026-07-08 | **Version**: v7.49.2 (pages de base : titre au-dessus du tableau, tableau calé à gauche au ras du sidebar) | **Statut**: EN COURS 🔄 > **Cible**: parité Notion + intégration forge · **Follow-ups v7.3 livrés**: sidebar teamspaces, notif `page.updated`, charts `number` + dashboards multi-DB, unfurl forge, UI Settings → Audit — voir `ROADMAP.md § v7.3.0` ## Avancement Global diff --git a/app/main.py b/app/main.py index 6e23adb..3324d4e 100644 --- a/app/main.py +++ b/app/main.py @@ -185,7 +185,7 @@ async def lifespan(_app: FastAPI): app = FastAPI( title="FlowDeck", - version="7.49.1", + version="7.49.2", docs_url="/docs", redoc_url="/redoc", lifespan=lifespan, diff --git a/app/templates/page_editor_collection.html b/app/templates/page_editor_collection.html index 072c6c0..638c843 100644 --- a/app/templates/page_editor_collection.html +++ b/app/templates/page_editor_collection.html @@ -5,6 +5,7 @@ page_title %}{{ page.title }}{% endblock %} {% block topbar %} {% set right_actions %}Edited ▾{% endset %} {% include '_header.html' %} {% endblock %} {% block content %} +

{{ page.title }}

{% include "_database_table.html" %} {% endblock %} {% block scripts %}