[PR #8058] fix: databse layout issue #8286

Open
opened 2026-03-23 23:23:28 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/8058
Author: @asjqkkkk
Created: 6/13/2025
Status: 🔄 Open

Base: mainHead: fix/database/issue


📝 Commits (1)

  • 8e8e72b fix: databse layout issue

📊 Changes

4 files changed (+19 additions, -13 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_page.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dart (+14 -8)
📝 frontend/appflowy_flutter/lib/plugins/database/widgets/database_view_widget.dart (+1 -3)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/database_view_block_component.dart (+1 -0)

📄 Description

To fix #6770

database reference inline databse
image image

To fix #6940
image

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Summary by Sourcery

Fix database layout issues by refining padding logic across tab bar, calendar page, and inline database views, and register calendar type for overflow handling.

Bug Fixes:

  • Adjust TabBar view padding to correctly apply horizontal offsets for calendar and inline database layouts
  • Use corrected paddingLeftWithMaxDocumentWidth in CalendarPage for accurate content alignment
  • Ensure inline database views consistently apply horizontal padding from provider

Enhancements:

  • Simplify horizontalPadding default logic in DatabaseViewWidget to always initialize before provider override

Chores:

  • Add calendarType to DatabaseBlockKeys overflowTypes for proper handling

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/8058 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 6/13/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/database/issue` --- ### 📝 Commits (1) - [`8e8e72b`](https://github.com/AppFlowy-IO/AppFlowy/commit/8e8e72b33502092211860fe946447b65990ed141) fix: databse layout issue ### 📊 Changes **4 files changed** (+19 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_page.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dart` (+14 -8) 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/database_view_widget.dart` (+1 -3) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/database_view_block_component.dart` (+1 -0) </details> ### 📄 Description To fix #6770 database reference | inline databse ---|--- <img width="1172" alt="image" src="https://github.com/user-attachments/assets/99798de5-4d68-4ac3-a8cb-8ade326bbe12" /> | <img width="1189" alt="image" src="https://github.com/user-attachments/assets/dcd952a1-08bc-47ae-8bcf-1f37b77c063c" /> To fix #6940 <img width="542" alt="image" src="https://github.com/user-attachments/assets/da0a0a8a-2c97-4751-9118-ed73e9d91099" /> ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. ## Summary by Sourcery Fix database layout issues by refining padding logic across tab bar, calendar page, and inline database views, and register calendar type for overflow handling. Bug Fixes: - Adjust TabBar view padding to correctly apply horizontal offsets for calendar and inline database layouts - Use corrected paddingLeftWithMaxDocumentWidth in CalendarPage for accurate content alignment - Ensure inline database views consistently apply horizontal padding from provider Enhancements: - Simplify horizontalPadding default logic in DatabaseViewWidget to always initialize before provider override Chores: - Add calendarType to DatabaseBlockKeys overflowTypes for proper handling --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#8286
No description provided.