mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 12:11:53 +01:00
Git support (#143)
This commit is contained in:
@@ -27,6 +27,7 @@ import { ContextMenu } from '../core/Dropdown';
|
||||
import { sidebarSelectedIdAtom, sidebarTreeAtom } from './SidebarAtoms';
|
||||
import type { SidebarItemProps } from './SidebarItem';
|
||||
import { SidebarItems } from './SidebarItems';
|
||||
import { GitDropdown } from '../GitDropdown';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
@@ -378,6 +379,7 @@ export function Sidebar({ className }: Props) {
|
||||
handleDragStart={handleDragStart}
|
||||
/>
|
||||
</div>
|
||||
<GitDropdown />
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -32,9 +32,10 @@ export function SidebarActions() {
|
||||
size="sm"
|
||||
title="Show sidebar"
|
||||
icon={hidden ? 'left_panel_hidden' : 'left_panel_visible'}
|
||||
iconColor="secondary"
|
||||
/>
|
||||
<CreateDropdown hotKeyAction="http_request.create">
|
||||
<IconButton size="sm" icon="plus_circle" title="Add Resource" />
|
||||
<IconButton size="sm" icon="plus_circle" iconColor="secondary" title="Add Resource" />
|
||||
</CreateDropdown>
|
||||
</HStack>
|
||||
);
|
||||
|
||||
@@ -267,8 +267,8 @@ export const SidebarItem = memo(function SidebarItem({
|
||||
<Icon
|
||||
size="sm"
|
||||
icon="chevron_right"
|
||||
color="secondary"
|
||||
className={classNames(
|
||||
'text-text-subtlest',
|
||||
'transition-transform',
|
||||
!collapsed && 'transform rotate-90',
|
||||
)}
|
||||
|
||||
@@ -44,7 +44,7 @@ export const SidebarItems = memo(function SidebarItems({
|
||||
aria-orientation="vertical"
|
||||
dir="ltr"
|
||||
className={classNames(
|
||||
tree.depth > 0 && 'border-l border-border-subtle',
|
||||
tree.depth > 0 && 'border-l border-border',
|
||||
tree.depth === 0 && 'ml-0',
|
||||
tree.depth >= 1 && 'ml-[1.2rem]',
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user