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

LaTeX text formatter fixes #87

Merged
merged 11 commits into from
Jun 27, 2021
Merged

LaTeX text formatter fixes #87

merged 11 commits into from
Jun 27, 2021

Conversation

sciepsilon
Copy link
Member

@sciepsilon sciepsilon commented Jun 26, 2021

Some updates to the text format feature (PR #84, issue #81).

  • Use <TranslatableText> for all user-facing text
  • Refactor into multiple files (this made using <TranslatableText> a lot easier)
  • spacing and verbiage tweaks
  • get rid of the Close button, since "Confirm" now works to update the tiers used after you make an initial selection
  • rename button from "Format" to "LaTeX"

The "close" button is no longer needed. Previously, after the user clicked Confirm, there was no way to change what tiers were used, so we provided a Close button that would let them start over from a new page load. Now if the user decides to change what buttons are selected and clicks Confirm again, the result will change accordingly.

It would still be nice to be able to collapse the format window, but we shouldn't do that via a page refresh.
Change the button text, and refactor file names and class names.
to differentiate it visually from all the input tier names / radio buttons below it
@sciepsilon
Copy link
Member Author

sciepsilon commented Jun 26, 2021

latexbutton
tier selection
formatresult

@hollyyuqizheng
Copy link
Collaborator

I think this all looks great! Doing the refactoring for the TranslatableText definitely makes sense.

Copy link
Member Author

@sciepsilon sciepsilon left a comment

Choose a reason for hiding this comment

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

A few places I missed in the "format" -> "latex" refactor

css/main.css Outdated Show resolved Hide resolved
jsx/App/Stories/Story/Display/LatexButton.jsx Outdated Show resolved Hide resolved
jsx/App/locale/LocaleConstants.jsx Outdated Show resolved Hide resolved
@sciepsilon sciepsilon merged commit ff90b46 into master Jun 27, 2021
}

.formatResultSection {
background : rgb(215, 233, 252);
.latexResultContainer {
overflow-x: scroll;
Copy link
Member Author

Choose a reason for hiding this comment

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

Replace scroll -> auto. That way, the scroll bar only shows up when it's needed. (Too late to make this change now that we've already merged, but I'll keep it in mind for future PRs)

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.

2 participants