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

Work on the style and usability of find and replace... #741

Merged
merged 3 commits into from
Nov 25, 2015

Conversation

ellisonbg
Copy link
Contributor

  • Using the align-left logo for the find in selection. We looked through various UIs and got this idea from Visual Studio Code. Still not perfect, but @jdfreder and I think it is an improvement.
  • Small size input fields and buttons for more efficient usage of space.
  • Bits of code organization.

@ellisonbg
Copy link
Contributor Author

  • Uses bold text for Aa and .* to improve legibility.

closes #558

.attr('title', 'Use regex (JavaScript regex syntax)')
.text('.*');

var onlySelectedButton = $('<button/>')
var onlySelectedButton = $('<button><i class="fa fa-align-left"/></button>')
Copy link
Member

Choose a reason for hiding this comment

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

doing that with jquery is bad. $() is not ment for templating, and it's inconsistent will al the rest of our code, like we won't be able to for an grep addClass | grep fa-align

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, fixed...

@Carreau
Copy link
Member

Carreau commented Nov 21, 2015

Thanks for the cleanup.

@Carreau
Copy link
Member

Carreau commented Nov 21, 2015

For more compactness :

pre.replace {
    padding:3px
}

Thoughts ?

@ellisonbg
Copy link
Contributor Author

On the padding. Using 3px seemed a bit tight, but here is a padding of 5px 10px which matches that used in the small bootstrap input fields on the dialog:

screen shot 2015-11-24 at 5 55 51 pm

I think this looks good and definitely fits more than before.

@ellisonbg
Copy link
Contributor Author

OK all changes are pushed and should be ready to go...

@minrk minrk added this to the 4.1 milestone Nov 25, 2015
@minrk
Copy link
Member

minrk commented Nov 25, 2015

That's looking pretty good to me. I'll let @Carreau merge.

@Carreau
Copy link
Member

Carreau commented Nov 25, 2015

+1 thanks ! Happy to see you submitting PRs !

Carreau added a commit that referenced this pull request Nov 25, 2015
Work on the style and usability of find and replace...
@Carreau Carreau merged commit 2dabc68 into jupyter:master Nov 25, 2015
@Carreau
Copy link
Member

Carreau commented Nov 25, 2015

I'm thinking in using lighter red and green for match and delete. Thoughts?

@ellisonbg
Copy link
Contributor Author

Sure I will try that now...

On Wed, Nov 25, 2015 at 4:31 AM, Matthias Bussonnier <
[email protected]> wrote:

I'm thinking in using lighter red and green for match and delete. Thoughts?


Reply to this email directly or view it on GitHub
#741 (comment).

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
[email protected] and [email protected]

@ellisonbg
Copy link
Contributor Author

Opps, did I merge this? Didn't mean to do that. But everything other than the colors is final so I think we are OK. I will create a seaprate PR for the color changes. After playing, I do like lighter colors.

@Carreau
Copy link
Member

Carreau commented Nov 25, 2015

Opps, did I merge this?

No I did, the color was a suggestion for separate PR.

@ellisonbg
Copy link
Contributor Author

Ahh OK, other PR is submitted :)

On Wed, Nov 25, 2015 at 9:25 AM, Matthias Bussonnier <
[email protected]> wrote:

Opps, did I merge this?

No I did, the color was a suggestion for separate PR.


Reply to this email directly or view it on GitHub
#741 (comment).

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
[email protected] and [email protected]

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants