-
Notifications
You must be signed in to change notification settings - Fork 971
Add an option for "no delay" in tab preview timing #12832
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12832 +/- ##
=======================================
Coverage 56.13% 56.13%
=======================================
Files 279 279
Lines 27309 27309
Branches 4442 4442
=======================================
Hits 15329 15329
Misses 11980 11980
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, left 1 question. I think it's 'instant' enough to consider it remaining being described as 'no delay' although perhaps could try reducing pause to somewhere between 25ms and 40ms?
app/renderer/components/tabs/tabs.js
Outdated
@@ -195,6 +196,7 @@ class Tabs extends React.Component { | |||
key={'tab-' + frameKey} | |||
ref={(node) => this.tabRefs.push(node)} | |||
frameKey={frameKey} | |||
tabsPerTabPage={this.props.tabsPerTabPage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering why a new prop has been added here, but no change to the Tab component to utilize it. Is this fixing a different bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh my bad this was for another pr thanks for spotting
81ef615
to
c37f159
Compare
@petemill ya I like instant and also suggested immediate but I guess @bradleyrichter is searching for a better phrase for the select title. re timing I'm ok changing to 40 btw but can't really spot the difference. Below 30ms I can repro the unwanted flash so I'd go 40-50ms |
It is getting late in Sweden so I will veck this one out early tomorrow 🙂 I was thinking of names and maby it could be called “Classic” or something because it is the old style 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timing looks great to me 👍 Definitely like the naming too (No delay). Nice fix! 😄
c37f159
to
044380b
Compare
044380b
to
e006874
Compare
@@ -153,7 +153,7 @@ module.exports = { | |||
'tabs.tabs-per-page': 20, | |||
'tabs.close-action': 'parent', | |||
'tabs.show-tab-previews': true, | |||
'tabs.preview-timing': 1000, | |||
'tabs.preview-timing': tabPreviewTiming.SHORT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!! Love this 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried all 3 options- each look and feel great 👍 Thanks for tweaking this (and thanks for bringing this up, @Jacalz !! )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice and clean! 👏
Can’t get the browser to build because I reinstalled my computer 🖥Going to need to wait for a new beta build from @bsclifton 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels and works almost exactly like the old system and it even feels slightly better, great job 👍
closes #8860
this is a follow-up of #9887 and adds a none option for tab preview delay.
Test Plan: