diff --git a/app/routes/documents.py b/app/routes/documents.py index 6b7120c..835e54d 100644 --- a/app/routes/documents.py +++ b/app/routes/documents.py @@ -2196,7 +2196,7 @@ def document_detail(document_id: str, request: Request, queue: str | None = None requested_tab = request.query_params.get("tab", "ocr-review") if requested_tab == "layout-review" and viewer_source != "scan": return RedirectResponse( - url=f"/documents/{document_id}?tab=ocr-review&viewer_source={viewer_source}", + url=f"/documents/{document_id}?tab=layout-review&viewer_source=scan", status_code=303, ) current_user = getattr(request.state, "current_user", None) diff --git a/app/static/app.css b/app/static/app.css index 20e31b8..e24f0b7 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -6308,3 +6308,19 @@ table { padding-right: 0.55rem; } } + +/* Force layout review tool rows to stack */ +#layout-review-toolbar .word-ribbon-group:first-child { + display: flex !important; + flex-direction: column !important; +} + +#layout-review-toolbar .word-ribbon-group:first-child .word-ribbon-row.layout-tool-row { + display: flex !important; + flex-wrap: nowrap !important; + width: 100% !important; +} + +#layout-review-toolbar .word-ribbon-group:first-child .word-ribbon-row.layout-tool-row + .word-ribbon-row.layout-tool-row { + margin-top: 0.35rem !important; +} diff --git a/app/templates/documents/detail.html b/app/templates/documents/detail.html index 4d57b08..28789a0 100644 --- a/app/templates/documents/detail.html +++ b/app/templates/documents/detail.html @@ -318,8 +318,8 @@ document.addEventListener("DOMContentLoaded", () => { {% endif %} {% if replica_debug_overlay_output %} Replica (Debug) - DOCX {% endif %} + DOCX {% if overlay_page_data %}
@@ -1981,6 +1981,11 @@ document.addEventListener("DOMContentLoaded", () => {
+ View Scan + {% if replica_clean_output %} + View Replica + {% endif %} + View DOCX Ready
Document