summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/message-part.css
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-18 07:12:29 -0600
committerAdam <[email protected]>2026-02-18 07:12:54 -0600
commitc34ad7223afff318cffef97cf84b8ec579ac352d (patch)
tree85e3ea98f4fd8a2a5d7c6d3b24d2cb83c26bae8b /packages/ui/src/components/message-part.css
parentcc86a64bb57bfa4361eafdaa31bdda29cf8b52ee (diff)
downloadopencode-c34ad7223afff318cffef97cf84b8ec579ac352d.tar.gz
opencode-c34ad7223afff318cffef97cf84b8ec579ac352d.zip
chore: cleanup
Diffstat (limited to 'packages/ui/src/components/message-part.css')
-rw-r--r--packages/ui/src/components/message-part.css75
1 files changed, 38 insertions, 37 deletions
diff --git a/packages/ui/src/components/message-part.css b/packages/ui/src/components/message-part.css
index 60c411bfd..9e571c9f1 100644
--- a/packages/ui/src/components/message-part.css
+++ b/packages/ui/src/components/message-part.css
@@ -1219,69 +1219,70 @@
}
[data-component="accordion"][data-scope="apply-patch"] {
+ [data-slot="accordion-trigger"] {
+ background-color: var(--background-stronger) !important;
+ }
+
[data-slot="apply-patch-trigger-content"] {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
+ gap: 20px;
+ }
+
+ [data-slot="apply-patch-file-info"] {
+ flex-grow: 1;
+ display: flex;
+ align-items: center;
+ gap: 20px;
min-width: 0;
- gap: 12px;
}
- [data-slot="apply-patch-file-path"] {
- font-family: var(--font-family-mono);
- font-size: var(--font-size-small);
- color: var(--text-weak);
- overflow: hidden;
+ [data-slot="apply-patch-file-name-container"] {
+ display: flex;
+ flex-grow: 1;
+ min-width: 0;
+ }
+
+ [data-slot="apply-patch-directory"] {
+ color: var(--text-base);
text-overflow: ellipsis;
+ overflow: hidden;
white-space: nowrap;
- flex-grow: 1;
+ direction: rtl;
+ text-align: left;
+ }
+
+ [data-slot="apply-patch-filename"] {
+ color: var(--text-strong);
+ flex-shrink: 0;
}
[data-slot="apply-patch-trigger-actions"] {
flex-shrink: 0;
- display: inline-flex;
+ display: flex;
+ gap: 16px;
align-items: center;
- gap: 10px;
+ justify-content: flex-end;
}
- [data-slot="apply-patch-file-action"] {
+ [data-slot="apply-patch-change"] {
font-family: var(--font-family-sans);
font-size: var(--font-size-small);
font-weight: var(--font-weight-medium);
- line-height: var(--line-height-large);
- color: var(--text-base);
- flex-shrink: 0;
-
- &[data-type="delete"] {
- color: var(--text-critical-base);
- }
-
- &[data-type="add"] {
- color: var(--text-success-base);
- }
-
- &[data-type="move"] {
- color: var(--text-warning-base);
- }
}
- [data-slot="apply-patch-deletion-count"] {
- font-family: var(--font-family-mono);
- font-size: var(--font-size-small);
- color: var(--text-critical-base);
- flex-shrink: 0;
+ [data-slot="apply-patch-change"][data-type="added"] {
+ color: var(--icon-diff-add-base);
}
- [data-slot="apply-patch-file-chevron"] {
- display: inline-flex;
- color: var(--icon-weaker);
- transform: rotate(-90deg);
- transition: transform 0.15s ease;
+ [data-slot="apply-patch-change"][data-type="removed"] {
+ color: var(--icon-diff-delete-base);
}
- [data-slot="accordion-item"][data-expanded] [data-slot="apply-patch-file-chevron"] {
- transform: rotate(0deg);
+ [data-slot="apply-patch-change"][data-type="modified"] {
+ color: var(--icon-diff-modified-base);
}
}