-
Notifications
You must be signed in to change notification settings - Fork 73
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: Hide CoreText
in preview if empty value. WF-20
#482
Conversation
89596aa
to
7f39a42
Compare
Hello @FabienArcellier & @ramedina86 , I'm trying to implement a general behavior to handle empty state for CoreText & CoreMessage . As @FabienArcellier pointed, we might want to have a general way to do this. I succeded to implement a Screencast.from.2024-07-16.00-24-36.webmI saw empty state of sidebar / Header / etc.. use a different logic. It uses writer-framework/ui/src/renderer/ComponentProxy.vue Lines 37 to 42 in df6fa8d
So I wonder if we want the same mechanism or if it's a bit overkill for the need and the WDTY? |
For the |
@madeindjs Those are two different things Childless placeholder: Automatically applied to any component that can contain children but doesn't The other one (what you've called |
Simply hide the
CoreText
usingv-if
in preview mode if the value isemptyText
. We still display the component in edit mode.Screencast.from.2024-06-29.14-37-01.webm