Skip to content

implement show only preview feature using toggle button#291

Open
mg5566 wants to merge 6 commits intovuejs:mainfrom
mg5566:feat/show-preview-toggle-button
Open

implement show only preview feature using toggle button#291
mg5566 wants to merge 6 commits intovuejs:mainfrom
mg5566:feat/show-preview-toggle-button

Conversation

@mg5566
Copy link
Copy Markdown

@mg5566 mg5566 commented Oct 20, 2024

스크린샷 2024-10-20 오후 3 52 33

I implement a show only preview toggle button

On small screens, the toggle button below disappears.
On larger screens, it should look like the video below.
스크린샷 2024-10-20 오후 3 53 13

2024-10-20.3.56.14.mov

close #290

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 20, 2024

@mg5566 is attempting to deploy a commit to the vuejs Team on Vercel.

A member of the Team first needs to authorize it.

@mg5566
Copy link
Copy Markdown
Author

mg5566 commented Oct 20, 2024

Feedback

I'm not sure what to do with the provider / inject key name.
I'm not sure if the button text 'show preview' is correct from the user's point of view.
Please let us know what you think and we'll take it into account.

Copy link
Copy Markdown
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

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

How should we change showPreview for controlling? Maybe should put showPreview to props.

@yyx990803 yyx990803 force-pushed the main branch 2 times, most recently from 06a2e36 to 41d770d Compare February 3, 2025 04:06
@oodavid
Copy link
Copy Markdown

oodavid commented Feb 25, 2026

I really like the Dart naming conventions for guidance here:

https://dart.dev/effective-dart/design

The "show" prefix can be troublesome, it has many verb and noun meanings. I know ts types are context, but at a glance showPreview could define the label, be a method, or set the state.

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.

Feature Request: Option to display only the preview without editor

3 participants