Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Fix RTL tab titles alignment #428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/sidebar/tabcenter.css
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ body[platform="win"] #searchbox-input:placeholder-shown {
margin-left: 6px;
}

#tablist-wrapper .tab-title-wrapper :dir(rtl) {
margin-right: 6px;
}

.tab.discarded .tab-title {
opacity: 0.5;
}
Expand All @@ -679,10 +683,14 @@ body[platform="win"] #searchbox-input:placeholder-shown {
display: none;
}

.tab-title-wrapper {
.tab-title-wrapper :dir(ltr){
mask-image: linear-gradient(to left, transparent 0, black 2em);
}

.tab-title-wrapper :dir(rtl){
mask-image: linear-gradient(to right, transparent 0, black 2em);
}

.tab:hover:not(.pinned) > .tab-title-wrapper {
mask-image: linear-gradient(to left, transparent 28px, black calc(2em + 28px));
}
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/tabcenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</div>
<div class="tab-title-wrapper">
<div class="tab-title"></div>
<div dir="auto" class="tab-title"></div>
<div class="tab-host"></div>
</div>
<div class="tab-pin"></div>
Expand Down