Skip to content
Closed
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: 4 additions & 3 deletions src/features/app/components/SidebarHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FolderKanban } from "lucide-react";
import { FolderKanban, Plus } from "lucide-react";

type SidebarHeaderProps = {
onSelectHome: () => void;
Expand All @@ -20,12 +20,13 @@ export function SidebarHeader({ onSelectHome, onAddWorkspace }: SidebarHeaderPro
</button>
</div>
<button
className="ghost workspace-add"
className="ghost plus-button"
style={{height: "24px", width: "24px", padding: "0 0 0 0", display: "flex", justifyContent: "center", alignItems: "center"}}
onClick={onAddWorkspace}
data-tauri-drag-region="false"
aria-label="Add workspace"
>
+
<Plus size={12}></Plus>
</button>
</div>
);
Expand Down
6 changes: 4 additions & 2 deletions src/features/app/components/WorkspaceCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { MouseEvent } from "react";

import type { WorkspaceInfo } from "../../../types";
import { Plus } from "lucide-react";

type WorkspaceCardProps = {
workspace: WorkspaceInfo;
Expand Down Expand Up @@ -67,7 +68,8 @@ export function WorkspaceCard({
</button>
</div>
<button
className="ghost workspace-add"
className="ghost plus-button"
style={{height: "24px", width: "24px", padding: "0 0 0 0", display: "flex", justifyContent: "center", alignItems: "center"}}
onClick={(event) => {
event.stopPropagation();
const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();
Expand All @@ -91,7 +93,7 @@ export function WorkspaceCard({
aria-label="Add agent options"
aria-expanded={addMenuOpen}
>
+
<Plus size={12}></Plus>
</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/features/git/components/GitDiffPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function DiffFileRow({
onContextMenu={onContextMenu}
>
<span className={`diff-icon ${statusClass}`} aria-hidden>
{statusSymbol}
<span className="diff-icon-text">{statusSymbol}</span>
</span>
<div className="diff-file">
<div className="diff-path">
Expand Down
4 changes: 2 additions & 2 deletions src/features/home/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export function Home({
</div>
<div className="home-actions">
<button
className="home-button primary"
className="home-button primary bouncing_button"
onClick={onOpenProject}
data-tauri-drag-region="false"
>
Expand All @@ -248,7 +248,7 @@ export function Home({
Open Project
</button>
<button
className="home-button secondary"
className="home-button secondary bouncing_button"
onClick={onAddWorkspace}
data-tauri-drag-region="false"
>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
}

.popover-surface {
background: var(--surface-popover);
background: #222;
border: 1px solid var(--border-muted);
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
Expand Down
14 changes: 13 additions & 1 deletion src/styles/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,19 @@ button:disabled {
height: 16px;
}

button:hover:not(:disabled) {
.bouncing_button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 12px 18px rgba(0, 0, 0, 0.2);
}

.plus-button {
opacity: 0;
}

.sidebar-header:hover .plus-button {
opacity: 1;
}

.workspace-card:hover .plus-button {
opacity: 1;
}
9 changes: 7 additions & 2 deletions src/styles/composer.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
flex-direction: column;
gap: 8px;
-webkit-app-region: no-drag;
padding: 12px var(--main-panel-padding) 24px;
border-top: 1px solid var(--border-subtle);
background: var(--surface-composer);
grid-column: 1;
Expand Down Expand Up @@ -67,6 +66,7 @@
.composer-input {
display: grid;
grid-template-columns: 1fr auto auto;
padding: 12px 16px 24px;
gap: 12px;
align-items: center;
}
Expand Down Expand Up @@ -512,6 +512,10 @@
display: flex;
gap: 8px;
flex-wrap: wrap;
padding-top: 4px;
padding-left: 16px;
padding-right: 4px;
padding-bottom: 8px;
}

.composer-context {
Expand All @@ -522,6 +526,8 @@
gap: 8px;
font-size: 11px;
color: var(--text-muted);
padding-right: 12px;
margin-top: -6px;
}

.composer-context-ring {
Expand Down Expand Up @@ -584,7 +590,6 @@
}

.composer-icon {
display: inline-flex;
width: 14px;
height: 14px;
color: var(--text-muted);
Expand Down
20 changes: 16 additions & 4 deletions src/styles/diff.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
text-transform: uppercase;
color: var(--text-subtle);
min-height: 26px;
gap: 8px;
}

.git-panel-title {
Expand Down Expand Up @@ -342,14 +343,25 @@
.diff-icon {
width: 16px;
height: 16px;
display: grid;
place-items: center;

display: inline-flex;
align-items: center;
justify-content: center;

border-radius: 4px;
border: 1px solid transparent;

font-size: 10px;
font-weight: 700;
border: 1px solid transparent;
line-height: 1;
padding-bottom: 2px;

box-sizing: border-box;
}

.diff-icon-text {
padding-left: 0.25px;
padding-bottom: 0.55px;
display: block;
}

.diff-icon-added {
Expand Down
26 changes: 23 additions & 3 deletions src/styles/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,27 @@
z-index: 1;
}

.settings-window::before {
content: "";
position: absolute;
inset: 0;
background: var(--surface-app, #111);
border-radius: inherit;
z-index: 0;
}

.settings-window > * {
position: relative;
z-index: 1;
}

.settings-titlebar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border-muted);
background: var(--surface-topbar);
background: #111;
}

.app.reduced-transparency .settings-backdrop {
Expand Down Expand Up @@ -100,7 +113,7 @@
.settings-content {
padding: 20px 24px;
overflow-y: auto;
background: var(--surface-messages);
background: #111;
}

.settings-field {
Expand Down Expand Up @@ -216,6 +229,13 @@
background: var(--surface-control);
color: var(--text-strong);
font-size: 12px;

appearance: none;
-webkit-appearance: none;
-moz-appearance: none;

box-shadow: none;
background-image: none;
}

.settings-select--compact {
Expand Down Expand Up @@ -536,7 +556,7 @@
width: 16px;
height: 16px;
border-radius: 999px;
background: var(--surface-card-strong);
background: white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

Expand Down
4 changes: 2 additions & 2 deletions src/styles/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@
}

.workspace-add {
width: 22px;
height: 22px;
width: 24px;
height: 24px;
border-radius: 999px;
border: 1px solid var(--border-stronger);
background: var(--surface-card-muted);
Expand Down