-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Improved ML button styling #73
Conversation
Not perfect, but much better than it actually was. The button is more obvious. Users will see more easily that they have to translate the field.
@AIC-BV there is a problem with markdown editor: |
@mjauvin Must've overlooked it when converting the CSS to LESS (because I tested & fixed it after your comment in discord 😅) |
In the |
Didn't know adding the bottom would actually set its height correctly! |
Really nice, one more thing: diff --git a/assets/less/multilingual.less b/assets/less/multilingual.less
index db20a4a..a174cc8 100644
--- a/assets/less/multilingual.less
+++ b/assets/less/multilingual.less
@@ -65,12 +65,13 @@
&.field-multilingual-markdowneditor {
.ml-btn {
- top: 41px;
+ right: 76px;
+ background-color: transparent;
}
.ml-dropdown-menu {
- top: 74px;
- right: 1px;
+ top: 36px;
+ right: 76px;
}
}
|
Would be nice to move the ml-btn on the RichEditor as well, but it seems more difficult. |
I added this! |
@AIC-BV can you paste a screenshot of what the repeater ML-button looks like here? |
Yes, do what's required! |
@mjauvin should be done |
Returns markdown editor ml-button to previous location and add margin to text input box so that we don't end-up under the ml-button diff --git a/assets/less/multilingual.less b/assets/less/multilingual.less
index 237ba1a..aaa1dfa 100644
--- a/assets/less/multilingual.less
+++ b/assets/less/multilingual.less
@@ -69,14 +69,17 @@
}
&.field-multilingual-markdowneditor {
+ .editor-write {
+ margin-right: 2rem;
+ }
.ml-btn {
- right: 76px;
- background-color: transparent;
+ top: 41px;
+ border-radius: 0;
+ border-bottom-left-radius: .375rem;
}
.ml-dropdown-menu {
- top: 36px;
- right: 76px;
+ top: 80px;
}
} |
|
@mjauvin 😄 |
Looks like it's working fine, but it's not triggering all the times when you get back from fullscreen mode (especially if you don't paste a huge amount of text). |
Can you show a video |
@AIC-BV where were we on this? |
For me it is finished 😄 |
@AIC-BV here's a video for the markdown editor that shows it is not updating: |
I am using the Winter.Test plugin and added the following to the Post model: public $implement = ['@Winter.Translate.Behaviors.TranslatableModel'];
public $translatable = ['name', 'content_md', 'content_html']; |
@mjauvin Markdowneditor has been fixed |
Not perfect, but much better than it actually was. Feel free to edit however you see fit!
The button is more obvious. Users will see more easily that they have to translate the corresponding field.