Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Compact Bravery panel tracking issue #9016

Closed
3 of 5 tasks
cezaraugusto opened this issue May 23, 2017 · 19 comments
Closed
3 of 5 tasks

Compact Bravery panel tracking issue #9016

cezaraugusto opened this issue May 23, 2017 · 19 comments
Labels
feature/shields polish Nice to have — usually related to front-end/visual tasks. project-tracking

Comments

@cezaraugusto
Copy link
Contributor

cezaraugusto commented May 23, 2017

TODOs:


Original title: jumpy double digits when using compact brave panel

this is a follow-up of #8990. We should add more room for 2 digits to avoid numbers being "jumpy". See below:

jumpy_double_digits

/cc @luixxiul

@cezaraugusto cezaraugusto added the polish Nice to have — usually related to front-end/visual tasks. label May 23, 2017
@Jacalz
Copy link
Contributor

Jacalz commented May 23, 2017

I also would suggest adding the compact bravery panel as the default and having an option to enable classic bravery panel 😉🦁

@luixxiul
Copy link
Contributor

@cezaraugusto I would agree. I'll work on that later.

@Jacalz
Copy link
Contributor

Jacalz commented May 23, 2017

Also maby make it shift slowly one step to the right when changing to double digits 😉

@luixxiul
Copy link
Contributor

I also would suggest adding the compact bravery panel as the default and having an option to enable classic bravery panel.

I'm not sure if it should be fine (as we are already used to the current panel). I would like to ask @bradleyrichter for his thought.

@luixxiul luixxiul self-assigned this May 23, 2017
@Jacalz
Copy link
Contributor

Jacalz commented May 23, 2017

I would say that it is okay to change it to the default since Brave hasn't hit 1.0 yet @luixxiul

@bradleyrichter
Copy link
Contributor

One more concern I have is with long URLs. Are they truncating?

We may need to adjust the header and put the URL on its own line if it will be truncated more than 30% of the time.

@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2017

@bradleyrichter this is my solution:

#8954 (comment)

long

@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2017

@cezaraugusto By setting min-width: 2ch you would not get the jumpy counters, instead however:

screenshot 2017-05-24 11 28 57

I would prefer the jumpy counters (which only can be noticed when you keep opening the panel while loading the page) to the ugly fixed width stats to be honest..

@bradleyrichter
Copy link
Contributor

bradleyrichter commented May 24, 2017 via email

@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2017

using a fixed width.

I'm afraid that will cause the same issue as #5726 (and #2096), so using fixed width should be avoided and that's why I aligned the elements vertically in one column.

We could find another way but applying fixed width.

@luixxiul
Copy link
Contributor

Either reduce the text size to allow for more characters

+1, would you please let me know which one is acceptable? I'm going to address that, thanks.

@bradleyrichter
Copy link
Contributor

@luixxiul When I meant fixed width, I mean to use a width that is dynamic based on the string width for that language.

Here is a new layout that should solve our issues:

image

  • I added a close button as I have witnessed some user delay for initial closing.

  • I rearranged the top area to make room for the long URL

  • I adjusted the number area to allow for 1 or 2 numbers. I think this will look cleanest and not matter if digits are updating when the panel is open.

  • This also shows a new popup for a future 3-way selection requested by @diracdeltas

@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2017

@bradleyrichter nice!

note: align the counters with items inside the advanced controls

@luixxiul luixxiul added this to the 0.16.200 milestone May 25, 2017
@luixxiul
Copy link
Contributor

@cezaraugusto May I change this ticket into a tracking one, to apply the mockup provided by @bradleyrichter ?

@cezaraugusto
Copy link
Contributor Author

sure all yours ;)

@luixxiul luixxiul changed the title jumpy double digits when using compact brave panel Compact Bravery panel tracking issue May 25, 2017
@luixxiul luixxiul modified the milestones: 0.19.x, 0.18.x (Frozen, only critical adds from here) Jun 11, 2017
@cezaraugusto
Copy link
Contributor Author

ok so based on Slack convo here's Brad's requests:

  • master plan is to make this panel the default. I think the plan is to eliminate the old panel
  • main concern is that blocking list increase panel width
  • better have it 320px min-width, as it works great in English. Other languages would follow that.
  • For small screen size, Brad suggested the picture below:

pasted image at 2017_06_29 11_24 am

@bradleyrichter
Copy link
Contributor

bradleyrichter commented Jun 30, 2017 via email

@luixxiul
Copy link
Contributor

luixxiul commented Jul 1, 2017

@cezaraugusto and I have discussed and concluded that we would get the max length of strings on the panel for each language with l20n and specify max-width: Xch with that length. FIxed with #9840.

Also adding width: 100% and margin-left: 10vw would prevent the panel from covering all viewport.

@luixxiul
Copy link
Contributor

luixxiul commented Jul 1, 2017

I don’t want to reduce language to O/I on the switch for normal widths.

is it possible to detect with JS that the words overwrap / overflow, to control when to display O/I instead of language?

@alexwykoff alexwykoff modified the milestones: 0.21.x (Nightly Channel), 0.19.x (Beta Channel) Jul 18, 2017
@luixxiul luixxiul modified the milestones: 0.22.x, 0.21.x (Nightly Channel) Aug 1, 2017
@luixxiul luixxiul removed this from the 0.22.x milestone Sep 25, 2017
@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@luixxiul luixxiul removed their assignment Feb 13, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature/shields polish Nice to have — usually related to front-end/visual tasks. project-tracking
Projects
None yet
Development

No branches or pull requests

6 participants