-
Notifications
You must be signed in to change notification settings - Fork 94
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(files): create suggestions bar #6856
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6856 +/- ##
==========================================
- Coverage 46.55% 46.53% -0.03%
==========================================
Files 748 727 -21
Lines 34316 34332 +16
Branches 1242 1221 -21
==========================================
Hits 15976 15976
- Misses 17718 17755 +37
+ Partials 622 601 -21 ☔ View full report in Codecov by Sentry. |
Signed-off-by: julia.kirschenheuter <[email protected]>
a1dc138
to
ebc2d27
Compare
@@ -612,6 +616,7 @@ export default { | |||
this.emit('update:content', { | |||
markdown: proseMirrorMarkdown, | |||
}) | |||
this.isEmptyContent = editor.state.doc.nodeSize <= 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the background for that fixed number of 4? I'd assume we can also check the text content length directly? Or the resulting markdown length?
@@ -58,6 +58,7 @@ | |||
</template> | |||
<ContentContainer v-show="contentLoaded" | |||
ref="contentWrapper" /> | |||
<SuggestionsBar v-if="isEmptyContent && contentLoaded" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only be shown if a markdown file is edited, not for plain text files (e.g. .txt
)
📝 Summary
🖼️ Screenshots