-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Move 'presentation mode' and 'bookmarks' buttons in the secondary toolbar (bug 1789082) #15391
Conversation
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.
Do we have any data that says that this functionality is used sparingly, or how was this decision made (since there's no additional context in the bug)?
To me, it feels like this will result in (potentially lots of) bug reports from users who now can't (easily) find these buttons.
web/viewer.css
Outdated
@@ -915,15 +914,15 @@ select { | |||
a.secondaryToolbarButton { | |||
padding-top: 6px; | |||
text-decoration: none; | |||
display: inline-block; |
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.
Given that the existing code should be working, I don't understand what this change is actually for?
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.
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 might be a perfectly fine change, but I'd like to understand why it's necessary since it wasn't in the old code (when the button became visible at a small viewer-width).
Could it possibly have been that the following rule "fixed" that, and thus obscured that this was always broken?
Lines 1506 to 1508 in 50d72fc
.visibleSmallView { | |
display: inherit; | |
} |
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.
The default display value for a <button>
is inline-block
and inline
for a <a>
.
When we're in the state you mentioned, inherit
will give the display value of the containing div
which is by default block
.
My feeling is that it's a bit messy and we should likely be more explicit in specifying that all the direct children of the secondary toolbar should be block
or inline-block
, ... something like that.
Anyway, I'll remove this "fix" from this patch because it's unrelated and we should fix that stuff in an other patch.
@rtestard ^^ |
web/viewer.html
Outdated
@@ -311,9 +309,6 @@ | |||
<button id="download" class="toolbarButton hiddenMediumView" title="Download" tabindex="34" data-l10n-id="download"> | |||
<span data-l10n-id="download_label">Download</span> | |||
</button> | |||
<a href="#" id="viewBookmark" class="toolbarButton hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark"> | |||
<span data-l10n-id="bookmark_label">Current View</span> | |||
</a> | |||
|
|||
<div class="verticalToolbarSeparator hiddenSmallView"></div> |
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.
Also, doesn't this need to be updated as follows to prevent a useless separator at narrow viewer-widths?
<div class="verticalToolbarSeparator hiddenSmallView"></div> | |
<div class="verticalToolbarSeparator hiddenMediumView"></div> |
78322ef
to
990f911
Compare
Ideally we would have had data points but we don't have them at this point - given we're landing an additional 2 toolbar buttons we had to make a call about increasing toolbar complexity without further considerations or moving some items that feel lower value to the overflow. This change feels low risk because:
In general users don't benefit from having too many toolbar options, especially when some are redundant or very corner case. These options will still be available from the overflow menu. |
At least for PresentationMode, it'd probably not be that difficult to add telemetry for it (based on how "simple" the editing-telemetry was to add).
Those two modes are not identical though, quite far from it, and I've always felt that they rather complement each other.
Note that doing so would lose the presentation-feature, which exists as a simple way to show a PDF document one page at a time without any background-colour. (You could partially simulate that by manually setting an appropriate scroll-mode, additionally when the browser uses a light theme you'd then have a light background around the pages.)
That might very well be true for the "average" user (if such a term is even appropriate/meaningful to use), however note that there's actually been (old) feature requests from users that wanted more of buttons available in the main toolbar :-) |
1b48ad0
to
c52e275
Compare
…lbar (bug 1789082)
c52e275
to
e56c30e
Compare
Following up on #15391 (review): I just saw https://www.reddit.com/r/firefox/comments/zcy0qf/no_more_pdf_bookmark_option/ which means that there's definitely users that relied on the |
@rtestard ^^ |
Apologies for delay. |
While I suppose that it might not change things all that much, there's however one general problem with those measurements (from a statistical point of view). Edit: Basically, I'm just saying that you need to be somewhat careful interpreting the results because of this. |
No description provided.