первй коммит

This commit is contained in:
2026-02-27 21:26:26 +03:00
parent e400b44732
commit ca00e6bbc8
19 changed files with 2701 additions and 257 deletions

View File

@@ -12,7 +12,7 @@
--left: 15%;
--center: 65%;
--right: 20%;
--splitter: 8px;
--splitter: 1px;
--outer-gap: 10px;
--title-row-h: 34px;
--control-row-h: 42px;
@@ -53,7 +53,7 @@ body {
}
.panel {
padding: 10px;
padding: 10px 6px;
display: flex;
flex-direction: column;
height: 100%;
@@ -186,15 +186,17 @@ textarea {
}
.splitter {
background: linear-gradient(180deg, #1b3c69 0%, #274f86 40%, #1b3c69 100%);
background: var(--line);
cursor: col-resize;
}
.splitter:hover {
filter: brightness(1.2);
background: #3a6597;
}
.tabs-row {
border-bottom: 1px solid var(--line);
padding-bottom: 8px;
margin-bottom: 8px;
}
@@ -313,6 +315,20 @@ textarea {
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
.editor-empty-state {
flex: 1;
min-height: 0;
border: 1px dashed var(--line);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
font-size: 14px;
background: #0b1830;
}
.md-toggle {
@@ -512,8 +528,15 @@ textarea {
}
.review-wrap {
flex: 1;
flex: 1 1 auto;
min-height: 0;
height: 100%;
margin-top: 0;
overflow: auto;
overflow-x: hidden;
padding-right: 2px;
padding-bottom: 12px;
scrollbar-gutter: stable both-edges;
}
.editor-review {
@@ -532,23 +555,118 @@ textarea {
.chat-log {
flex: 1;
min-height: 0;
overflow: auto;
min-width: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
justify-content: flex-start;
scrollbar-gutter: stable both-edges;
font-size: 13px;
}
.chat-entry {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px dotted var(--line);
padding: 6px 8px;
border: 1px solid rgba(121, 149, 196, 0.25);
border-radius: 8px;
max-width: 88%;
min-width: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
word-wrap: break-word;
align-self: flex-start;
}
.chat-entry-user {
color: var(--text);
align-self: flex-end;
text-align: right;
background: #14335f;
}
.chat-entry-system {
color: #9ab0d7;
background: rgba(33, 56, 94, 0.35);
}
.chat-entry-error {
color: #ff8d8d;
background: rgba(80, 30, 37, 0.35);
}
.chat-entry-assistant {
color: #f6f8ff;
background: rgba(26, 44, 77, 0.5);
max-width: 85%;
}
.chat-entry-intermediate {
color: #b8bfd0;
}
.chat-task-progress {
margin-top: 8px;
width: 100%;
height: 4px;
border-radius: 4px;
overflow: hidden;
background: rgba(191, 202, 226, 0.25);
}
.chat-task-progress-bar {
height: 100%;
width: 0%;
border-radius: 4px;
background: #e6ecfa;
transition: width 180ms ease;
}
.chat-entry:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.chat-sse-window {
padding: 6px 8px;
background: rgba(20, 31, 52, 0.65);
border: none;
max-width: 85%;
}
.chat-sse-window-complete {
border-color: rgba(141, 157, 186, 0.25);
}
.chat-sse-list {
height: 110px;
display: flex;
flex-direction: column;
justify-content: flex-start;
gap: 4px;
overflow-y: scroll;
overflow-x: hidden;
scrollbar-gutter: stable;
font-size: 12px;
}
.chat-sse-line {
color: #97a4bd;
display: flex;
flex-direction: column;
gap: 6px;
flex-shrink: 0;
}
.chat-sse-text {
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: normal;
line-height: 1.35;
}
.chat-sse-line .chat-task-progress {
margin-top: 2px;
}
.chat-form {
@@ -595,18 +713,115 @@ textarea {
}
.diff-view {
overflow: auto;
min-height: 120px;
flex: 1;
overflow: visible;
flex: 0 0 auto;
display: flex;
flex-direction: column;
gap: 10px;
}
.review-file {
display: flex;
flex-direction: column;
gap: 8px;
}
.review-file-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.review-file-title {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text);
font-size: 14px;
font-weight: 600;
}
.review-file-actions {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: auto;
}
.review-file-actions > button {
height: 28px;
padding: 0 10px;
font-size: 12px;
}
.diff-block {
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
cursor: pointer;
}
.diff-block.accepted {
border-color: #2f8f64;
}
.diff-block.rejected {
border-color: #9a3d48;
}
.diff-block-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
padding: 6px 8px;
border-bottom: 1px solid var(--line);
background: #12284b;
}
.diff-block-title {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
font-size: 12px;
}
.diff-block-controls {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: auto;
}
.diff-block-body {
display: block;
}
.diff-block.collapsed .diff-block-body {
display: none;
}
.diff-block-actions > button {
height: 26px;
padding: 0 10px;
font-size: 12px;
}
.diff-block-actions > button.active {
border-color: var(--accent);
}
.diff-line {
display: grid;
grid-template-columns: auto 1fr;
gap: 8px;
display: block;
font-family: "IBM Plex Mono", "Consolas", monospace;
font-size: 12px;
padding: 2px 8px;
white-space: pre-wrap;
}
.diff-line.add {
@@ -617,20 +832,64 @@ textarea {
background: #3a2027;
}
.diff-line.context {
color: var(--muted);
background: #0b1830;
}
.tree-item {
padding: 2px 4px;
cursor: pointer;
user-select: none;
border-radius: 4px;
}
.tree-item:hover {
background: #133056;
}
.tree-item-selected {
background: #183563;
}
.tree-item-dir {
color: var(--muted);
}
.tree-context-menu {
position: fixed;
z-index: 10000;
min-width: 220px;
display: flex;
flex-direction: column;
padding: 6px;
gap: 4px;
border: 1px solid var(--line);
border-radius: 8px;
background: #0f2343;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.tree-context-menu > button {
height: 32px;
text-align: left;
padding: 0 10px;
font-size: 13px;
border-radius: 6px;
}
.tree-inline-input {
width: 100%;
height: 28px;
padding: 0 8px;
border: 1px solid var(--accent);
border-radius: 6px;
background: #0b1830;
color: var(--text);
font-size: 13px;
line-height: 1;
}
.indexing-modal {
position: fixed;
inset: 0;
@@ -695,6 +954,26 @@ textarea {
transition: width 0.2s ease;
}
.indexing-progress.indeterminate .indexing-progress-bar {
width: 35%;
animation: indexing-indeterminate-slide 1s linear infinite;
}
.indexing-actions {
display: flex;
justify-content: flex-end;
margin-top: 14px;
}
@keyframes indexing-indeterminate-slide {
0% {
transform: translateX(-120%);
}
100% {
transform: translateX(320%);
}
}
@media (max-width: 1100px) {
.layout {
grid-template-columns: 1fr;