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

[Suggestion] Remove close button and bottom edge for selected pinned tabs #10

Closed
zhuopeng-tan opened this issue May 25, 2021 · 24 comments
Closed
Labels
Component::Tabbar Tab or tabbar Issue::Bug Something isn't working

Comments

@zhuopeng-tan
Copy link

zhuopeng-tan commented May 25, 2021

Thanks for your work, it looks better than official UI.

image

As the image shows, it's weird to show just a close button for selected pinned tabs, it's better to remove it.

And I suggest to removing the bottom edge for selected pinned tabs to be consistent with unpinned tabs.

@zhuopeng-tan zhuopeng-tan changed the title [Suggestion] Do not show close button and bottom edge for pinned tabs [Suggestion] Do not show close button and bottom edge for selected pinned tabs May 25, 2021
@zhuopeng-tan zhuopeng-tan changed the title [Suggestion] Do not show close button and bottom edge for selected pinned tabs [Suggestion] Remove close button and bottom edge for *selected* pinned tabs May 25, 2021
@zhuopeng-tan zhuopeng-tan changed the title [Suggestion] Remove close button and bottom edge for *selected* pinned tabs [Suggestion] Remove close button and bottom edge for selected pinned tabs May 25, 2021
@black7375 black7375 added the Issue::Bug Something isn't working label May 25, 2021
@black7375
Copy link
Owner

Closed button is the intended design.

Inspired from chromium.
Chomium Tab

Maybe just erase the next part.

/** Pinned Tab - Replace Favicon to Close Button at Selected ****************/
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-close-button {
display: -moz-box !important;
-moz-box-ordinal-group: 0 !important;
transform: translateX(-1px);
/* Looks like hover */
width: 24px !important;
height: 24px !important;
padding: 7px !important;
}
.tabbrowser-tab[pinned][visuallyselected] .tab-icon-image {
display: none !important;
}
/* Left Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline: 7.5px !important; /* Original: 10px */
}
/* Right Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-stack {
width: 8.5px !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline-end: 0px !important;
}
.tabbrowser-tab[pinned][visuallyselected][busy] .tab-content {
padding-inline-end: 9.5px !important;
}
.tabbrowser-tab[pinned][busy] .tab-content {
padding-inline: 10.5px !important;
}
/* Sound Tab - Don't move overlay */
.tabbrowser-tab[pinned][busy] .tab-icon-overlay:is([soundplaying], [muted], [activemedia-blocked]) {
transform: translateX(.5px) translateY(-2px) !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-overlay {
transform: translateX(-9px) translateY(-2px) !important;
left: 0 !important;
}


Bottom shadow line is a bug and can be reproduced in case of tab overflow.
I'll fix it as soon as possible.

@zhuopeng-tan
Copy link
Author

image

Yeah, close button removed, it would be perfect if the bottom edge (the line between tab bar and tool bar) could be removed too.

Actually we can close pinned tab by middle click without close button.

@black7375
Copy link
Owner

Fixed it now, test please

@black7375 black7375 added Issue::Question Further information is requested Issue::Wontfix This will not be worked on and removed Issue::Question Further information is requested labels May 25, 2021
@zhuopeng-tan
Copy link
Author

image

Perfect! Thanks!

How about creating a separate branch for the change(Hide close button for selected pinned tabs)?

/** Pinned Tab - Replace Favicon to Close Button at Selected ****************/
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-close-button {
display: -moz-box !important;
-moz-box-ordinal-group: 0 !important;
transform: translateX(-1px);
/* Looks like hover */
width: 24px !important;
height: 24px !important;
padding: 7px !important;
}
.tabbrowser-tab[pinned][visuallyselected] .tab-icon-image {
display: none !important;
}
/* Left Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline: 7.5px !important; /* Original: 10px */
}
/* Right Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-stack {
width: 8.5px !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline-end: 0px !important;
}
.tabbrowser-tab[pinned][visuallyselected][busy] .tab-content {
padding-inline-end: 9.5px !important;
}
.tabbrowser-tab[pinned][busy] .tab-content {
padding-inline: 10.5px !important;
}
/* Sound Tab - Don't move overlay */
.tabbrowser-tab[pinned][busy] .tab-icon-overlay:is([soundplaying], [muted], [activemedia-blocked]) {
transform: translateX(.5px) translateY(-2px) !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-overlay {
transform: translateX(-9px) translateY(-2px) !important;
left: 0 !important;
}

@black7375
Copy link
Owner

I created it because it is a function that can split like and dislike.
https://github.com/black7375/Firefox-UI-Fix/tree/hide-closebutton-at-pinned

I'll merge regularly and I will try and ensure maximum compatibility, but support may be less compared to the base version.


Guessing, are you trying to sync with git pull?

@zhuopeng-tan
Copy link
Author

I created it because it is a function that can split like and dislike.
https://github.com/black7375/Firefox-UI-Fix/tree/hide-closebutton-at-pinned

I'll merge regularly and I will try and ensure maximum compatibility, but support may be less compared to the base version.

Guessing, are you trying to sync with git pull?

At the present, I just copy the content, the reason that I suggest creating a separate branch is that maybe one day I need to setup a new machine, and for other users who also need this change.

It's a small change, so merge future updates shouldn't take much effort.

Again, thanks for you work.

@black7375
Copy link
Owner

Thanks for the answer

@black7375 black7375 added the Component::Tabbar Tab or tabbar label May 27, 2021
@zhuopeng-tan
Copy link
Author

@black7375
I just checked the latest version Chrome, it does not show close button for pinned tabs, so can we rebase/merge branch hide-closebutton-at-pinned to master?

image

Closed button is the intended design.

Inspired from chromium.
Chomium Tab

Maybe just erase the next part.

/** Pinned Tab - Replace Favicon to Close Button at Selected ****************/
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-close-button {
display: -moz-box !important;
-moz-box-ordinal-group: 0 !important;
transform: translateX(-1px);
/* Looks like hover */
width: 24px !important;
height: 24px !important;
padding: 7px !important;
}
.tabbrowser-tab[pinned][visuallyselected] .tab-icon-image {
display: none !important;
}
/* Left Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline: 7.5px !important; /* Original: 10px */
}
/* Right Padding - Assume the icon size is 17px */
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-stack {
width: 8.5px !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-content {
padding-inline-end: 0px !important;
}
.tabbrowser-tab[pinned][visuallyselected][busy] .tab-content {
padding-inline-end: 9.5px !important;
}
.tabbrowser-tab[pinned][busy] .tab-content {
padding-inline: 10.5px !important;
}
/* Sound Tab - Don't move overlay */
.tabbrowser-tab[pinned][busy] .tab-icon-overlay:is([soundplaying], [muted], [activemedia-blocked]) {
transform: translateX(.5px) translateY(-2px) !important;
}
.tabbrowser-tab[pinned][visuallyselected]:not([busy]) .tab-icon-overlay {
transform: translateX(-9px) translateY(-2px) !important;
left: 0 !important;
}

Bottom shadow line is a bug and can be reproduced in case of tab overflow.
I'll fix it as soon as possible.

@black7375
Copy link
Owner

There is no plan yet, but if many people feel uncomfortable a lot later, we will reflect it.

@Stepan-H
Copy link

Stepan-H commented Jun 2, 2021

I feel wery uncomfortable and I unintentionally close a tab by missclick (unintentionally doubleclick)...

@zhuopeng-tan
Copy link
Author

zhuopeng-tan commented Jun 2, 2021

@black7375 @Stepan-H The behaviors Hide close button for **pinned** tabs and Close pinned tabs by middle click or right click + menu are same to Chrome, Chrome does not keep close button for pinned tabs, pinned tabs are expected to be accessed frequently, so users would keep them for long time

For regular tabs, showing close button makes sense.

Closed button is the intended design.
Inspired from chromium.

@black7375
Copy link
Owner

Yes. I will seriously consider it when I work on it tomorrow.

@black7375
Copy link
Owner

This will be discussed again after 1.0. #31

@black7375 black7375 reopened this Jun 2, 2021
@ghost
Copy link

ghost commented Jun 2, 2021

Yeah man the close button is mostly useful but could be insanely annoying when I drop the mouse and close some tabs.
How about using JS to add toggling of it?

@black7375
Copy link
Owner

All features using JS should be introduced after the installer is created.
It requires too many settings from users.

@ghost
Copy link

ghost commented Jun 2, 2021

Ok. I'm working on the installer script. I'll implement the backup and redirection later.
I agree on your statement that it requires too may settings from users.
This project shouldn't be bloated by any means.

@black7375
Copy link
Owner

@7k5x check #32
Seems like a good example.

@ghost
Copy link

ghost commented Jun 2, 2021

Crazy big script, but I think that's really good. Maybe someone should implement that on chrome too.
Google, are you listening?

@ghost
Copy link

ghost commented Jun 2, 2021

@black7375 IMO putting options in install.sh should be minimized or be removed. Most people want things to just work. I'll review replacing the options with prompting the user input from the console.
i.e. install.sh prompts Will you include Firefox selection fix?(Y/n):

@black7375
Copy link
Owner

First of all, changes to default options should be minimized.
It would be nice to control it by adding parameters.

@cubetastic33
Copy link

I agree, showing the close button on pinned tabs seems counter-intuitive and gets in the way. Pinned tabs are likely to be open for long and it looks ugly to see just a close icon whenever the tab is active.

@black7375
Copy link
Owner

1.0 has been released.
Now, closed button on tab will be removed.

black7375 added a commit that referenced this issue Jun 9, 2021
…ed' #10"

This reverts commit 8fefe8a, reversing
changes made to e30cf6f.
@black7375 black7375 removed the Issue::Wontfix This will not be worked on label Jun 9, 2021
@mikesafari
Copy link

1.0 has been released.
Now, closed button on tab will be removed.

It looks like this is still an issue in Photon-Style.

@black7375
Copy link
Owner

reflected for photon-stlye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component::Tabbar Tab or tabbar Issue::Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants