Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent preview div from collapsing to 0px height #277

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

pbirrer
Copy link
Contributor

@pbirrer pbirrer commented Nov 21, 2024

The whiteboard preview in the text app editor is currently collapsing entirely, rendering it unusable. This issue has been observed in both Firefox and Chromium browsers. This commit addresses the problem by setting a minimum height of 400px for the preview, ensuring it remains visible and functional.

From:
whiteboard-preview-current

To:
whiteboard-preview-fixed

@nextcloud/designers: Are there any potential impacts this change might have on other parts of the application?

Copy link
Member

@grnd-alt grnd-alt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first contribution 🎉
I've tested your pull request and it does make the whiteboard visible, though the toolbar is not rendered, and one can't edit.
If you get your DCO check green I think we can get this merged for now!
I will then create a ticket to fix the rest of it.

@pbirrer
Copy link
Contributor Author

pbirrer commented Nov 21, 2024

I believe the Excalidraw widget is intentionally set to read-only mode in the preview, which makes sense. However, it would be great if the menu bar at the bottom could be removed in the preview for a cleaner look.

@grnd-alt grnd-alt merged commit 7cbbe87 into nextcloud:main Nov 25, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants