-
Notifications
You must be signed in to change notification settings - Fork 959
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
Pinned panel #4798
Pinned panel #4798
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
263df60
to
88d8db4
Compare
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.
@@ -4,6 +4,8 @@ | |||
"panel.documentation": "Documentation", | |||
"panel.description": "Description", | |||
"panel.maintainedByRemix": "Maintained by Remix", | |||
"panel.pinnedMsg": "Click to dock plugin to the right", | |||
"panel.unPinnedMsg": "Click to return plugin to the side panel", |
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.
may be better to say: Click to return plugin to the left side panel
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.
Agree. Maybe even same sentence but with right/left
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.
- When you pin a panel - it pops to the right - but the main panel and the terminal get a ugly scroll bar that is not aligned with each other.
- Learneth should appear on the right side by default. A new user won't know how to pin it.
- I am not sure pinning is the right word...lets discuss...
- Also left side panels have the old style of scroll bar - like mentioned above:
- maybe the pin should be an arrow icon:
@@ -6,5 +6,7 @@ | |||
"panel.maintainedByRemix": "由 Remix 维护", | |||
"panel.pluginInfo": "插件信息", | |||
"panel.linkToDoc": "文档链接", | |||
"panel.makeAnissue": "提交 issue" | |||
"panel.makeAnissue": "提交 issue", |
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 don't need to add those in all language files. It will take English by default anyway. Just add the label "needs translation".
@@ -34,6 +34,12 @@ pre { | |||
width : 320px; | |||
transition : width 0.25s; | |||
} | |||
.pinnedpanel { | |||
display : flex; | |||
flex-direction : row-reverse; |
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.
Please use bootstrap classes for first two
@ioedeveloper please exclude the plugins you've added from the plugin manager |
7212c06
to
567f277
Compare
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.
I think it LGTM. In the spirit of small prs and the development process being more iterative, I approve this pr and I think we can have corrections and patches come in later "smaller" prs
567f277
to
33f0007
Compare
Closes #3787
How it works
This PR introduces the functionality of being able to pin/dock a plugin to a fixed position on the right of the IDE.
NOTE: We would need to discuss the plugins that should have this new icon to pin and unpin plugins.
NOTE: For now, only internal plugins have the ability to maintain state when pinned from left to right and vice-versa. Iframe plugins will have to reload when it switches sides. Also, i have only implemented state persistence for udapp and search plugin, because they are the easiest to implement for now because of how state is managed in this two plugins. Implementing for other internal plugins will involve a lot of code changes, which is out of the scope of this PR.