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

Introduce insert menu and adjust select widths #51

Merged
merged 1 commit into from
May 17, 2024

Conversation

dnkrj
Copy link
Contributor

@dnkrj dnkrj commented May 17, 2024

  • Add an insert menu with placeholder items for images and attachments for testing next week.
  • Manually set the width of the selects to ensure that the visual editor toolbar fits on one line.

https://trello.com/c/YZpwh0xp/2601-insert-element-menu-component

Screenshot

Screenshot 2024-05-17 at 11 39 54

Add an insert menu with placeholder items for images and attachments for testing next week.

Manually set the width of the selects to ensure that the visual editor toolbar fits on one line.
@dnkrj dnkrj force-pushed the 2601-insert-element-menu-component branch from 0758248 to 8182857 Compare May 17, 2024 10:50
Copy link
Contributor

@lauraghiorghisor-tw lauraghiorghisor-tw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnkrj dnkrj merged commit 3a4bb03 into main May 17, 2024
4 checks passed
@dnkrj dnkrj deleted the 2601-insert-element-menu-component branch May 17, 2024 10:58
Copy link
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -239,13 +256,14 @@ function redoMenuItem(schema) {
function items(schema, editorView) {
return [
headingMenuItem(schema),
select(headingMenuSelectOptions(schema), editorView),
select(headingMenuSelectOptions(schema), editorView, "headingSelect"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is having camel case class names a bit weird at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, will merge in a fix

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

Successfully merging this pull request may close these issues.

3 participants