-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
#299 add toolbar for markdown formatting #305
Conversation
Could anyone review it? @Guria, @umputun, @igoradamenko |
Why silence here? Good job. Though I don't like that you store icons as react components. Better store them as plain svg and take advantage of https://www.npmjs.com/package/svg-inline-react |
@Reeywhaar I see only one advantage, that you can open icon in some image viewer. |
Yep, this way it can be not only opened in viewer, but edited in redactor, given to designer, reused in some other place, etc.
I think better to load images as
or something. I agree that |
How is often this project change icons? For me, It is not problem covert 8 raw icons to svg manually. |
with an extra toolbar the edit field looks too small. I'd suggest to make it 1 or even 2 lines higher |
agree |
Could you merge this request? |
I have merged, and it is live on https://remark42.com/demo/ However, it looks kind of strange to me. This new toolbar makes the edit section visually unbalanced. Before the spaces on right, left and on the top were the same and it looked nice, but now it is not that nice anymore. I'm not sure how to fix it, open for suggestions/ideas. |
an interesting idea, but formatting toolbar on the bottom is unusual. Maybe the same but on top? |
Unfortunately, on mobile it looks ugly then, conflicts with buttons on the left. |
maybe just collapse them all to a single button on mobile? |
another possibility is to hide this part on mobile, like github does |
Well, let's hide it then, I think burger button is too clumsy to use, and too close to "send button". But still I'm unsure about removing guide text, it contains useful info |
Solution for #299
It work the same way as it works on github.
Underhood we use package from github team.
How it looks: