-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: Preview snap (fix #54) #65
Conversation
✅ Deploy Preview for histoire-controls ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for histoire-site ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for histoire-examples-vue3 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
b704411
to
b95cb2f
Compare
height: finalHeight ? `${finalHeight + 44}px` : null, | ||
class="htw-h-full htw-p-4 htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative preview-fit" | ||
:class="isResponsiveEnabled ? { | ||
'preview-fit-width': !!finalWidth, |
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.
You can use htw-w-fit
(docs)
class="htw-h-full htw-p-4 htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative preview-fit" | ||
:class="isResponsiveEnabled ? { | ||
'preview-fit-width': !!finalWidth, | ||
'preview-fit-height': !!finalHeight |
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.
htw-h-fit
fix #54
Description
Additional context
I put the
previewSettings
into the store, that made more sense to me. Wdyt?What is the purpose of this pull request?