Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ a {
border-radius: 0.25em;
}
.dark-theme .has-thin-scrollbar::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.25);
background-color: rgba(0, 0, 0, 0.3);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look very good against a dark-gray background; let's leave the background as-is:

Image

}
.dark-theme .has-thin-scrollbar::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.6);
background-color: rgba(255, 255, 255, 0.3);
}
.dark-theme .has-thin-scrollbar::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.5);
}
13 changes: 13 additions & 0 deletions css/tabBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ body.linux #menu-button {
padding-left: 0.5rem;
padding-right: 0.5rem;
}

#tabs.safari-tab-resize-enabled .tab-item {
transition: flex-grow 0.22s ease, transform 0.15s ease;
}

#tabs.safari-tab-resize-enabled .tab-item:hover {
flex-grow: 1.1;
}

#tabs.safari-tab-resize-enabled .tab-item.active {
flex-grow: 1.3;
}

.tab-item.active {
min-width: 168px;
}
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
<input type="search" id="task-search-input"/>
</div>
</div>
<div id="task-area"></div>
<div id="task-area" class="has-thin-scrollbar"></div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task list has plenty of space for a native scrollbar, so I think we should continue doing that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything will be ready today

<button id="add-task">
<i class="i carbon:new-tab"></i>
<span></span>
Expand Down
6 changes: 5 additions & 1 deletion js/navbar/tabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ const tabBar = {
})
},
handleSizeChange: function () {
if (window.innerWidth / tabBar.containerInner.childNodes.length < 190) {
const tabCount = tabBar.containerInner.children.length

tabBar.container.classList.toggle('safari-tab-resize-enabled', tabCount > 3)

if (window.innerWidth / tabCount < 190) {
tabBar.container.classList.add('compact-tabs')
} else {
tabBar.container.classList.remove('compact-tabs')
Expand Down