Skip to content

Commit

Permalink
performance improvement: CSS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdc committed Dec 5, 2024
1 parent bd33fa5 commit 5f80601
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vertical-tabs",
"name": "Vertical Tabs",
"version": "0.11.2",
"version": "0.11.3",
"minAppVersion": "1.6.2",
"description": "Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.",
"author": "oxdc",
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavigationTreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const NavigationTreeItem = (props: NavigationTreeItemProps) => {
"is-collapsed": props.isCollapsed,
"is-sidebar": props.isSidebar,
"is-being-dragged": isDragging,
"is-being-dragged-over": isOver,
"vt-is-being-dragged-over": isOver,
"is-tab-slot": props.isTabSlot,
"is-group-slot": props.isGroupSlot,
"is-single-group": props.isSingleGroup,
Expand Down
8 changes: 4 additions & 4 deletions src/styles/DropIndicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// group
&.is-dragging-group {
.tree-item.is-group {
&.is-being-dragged-over,
&:has(.is-being-dragged-over) {
&.vt-is-being-dragged-over,
&:has(.vt-is-being-dragged-over) {
&::before {
background: var(--interactive-accent);
}
Expand All @@ -28,11 +28,11 @@

// tab
&:not(.is-dragging-group) {
.tree-item.is-tab.is-being-dragged-over::before {
.tree-item.is-tab.vt-is-being-dragged-over::before {
background: var(--interactive-accent);
}

.tree-item.is-group.is-being-dragged-over {
.tree-item.is-group.vt-is-being-dragged-over {
.is-tab-slot::before {
background: var(--interactive-accent);
}
Expand Down

0 comments on commit 5f80601

Please sign in to comment.