Skip to content
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

How to add more Formula templates on second row? #45

Closed
purnomosejati opened this issue Mar 22, 2020 · 2 comments · Fixed by #51
Closed

How to add more Formula templates on second row? #45

purnomosejati opened this issue Mar 22, 2020 · 2 comments · Fixed by #51
Labels

Comments

@purnomosejati
Copy link

Hi Sir,

This mathquil4quil is great.

I need to add more fomula on template and show it as column & row.

The existing feature is only showing single row formula.

Please let me know if it is possible

@c-w
Copy link
Owner

c-w commented Mar 23, 2020

Since version 2.0.0 it's possible to override the styles used by mathquill4quill with your own custom CSS. Wrapping the operator buttons on multiple rows can be achieved by setting the flex-wrap property on the operator button container.

Required custom CSS:

.mathquill4quill-operator-container {
  flex-wrap: wrap;
}

Resulting UI:

Screenshot showing multiple rows of operator buttons

Resolving this issue. Feel free to re-open if this doesn't address your use-case.

@c-w
Copy link
Owner

c-w commented Mar 27, 2020

In an effort to make mathquill4quill more responsive, wrapping operator buttons onto multiple rows has been made the default in v2.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants