diff options
| author | Adam <[email protected]> | 2026-02-18 06:31:26 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-18 06:32:35 -0600 |
| commit | 3394402aefecbaa7f7f469344811b4089a2ddb01 (patch) | |
| tree | d139c7ba725e0f3081b98acfb38ac2f9e0578a77 /packages/ui/src/components/message-part.css | |
| parent | 6cd3a5902260764899a566b33d7f76123b9c9800 (diff) | |
| download | opencode-3394402aefecbaa7f7f469344811b4089a2ddb01.tar.gz opencode-3394402aefecbaa7f7f469344811b4089a2ddb01.zip | |
chore: cleanup
Diffstat (limited to 'packages/ui/src/components/message-part.css')
| -rw-r--r-- | packages/ui/src/components/message-part.css | 60 |
1 files changed, 33 insertions, 27 deletions
diff --git a/packages/ui/src/components/message-part.css b/packages/ui/src/components/message-part.css index bfcedde83..60c411bfd 100644 --- a/packages/ui/src/components/message-part.css +++ b/packages/ui/src/components/message-part.css @@ -326,8 +326,7 @@ } [data-slot="collapsible-content"]:has([data-component="edit-content"]), -[data-slot="collapsible-content"]:has([data-component="write-content"]), -[data-slot="collapsible-content"]:has([data-component="apply-patch-files"]) { +[data-slot="collapsible-content"]:has([data-component="write-content"]) { border: 1px solid var(--border-weak-base); border-radius: 6px; background: transparent; @@ -1219,21 +1218,31 @@ } } -[data-component="apply-patch-files"] { - display: flex; - flex-direction: column; -} +[data-component="accordion"][data-scope="apply-patch"] { + [data-slot="apply-patch-trigger-content"] { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + min-width: 0; + gap: 12px; + } -[data-component="apply-patch-file"] { - display: flex; - flex-direction: column; + [data-slot="apply-patch-file-path"] { + font-family: var(--font-family-mono); + font-size: var(--font-size-small); + color: var(--text-weak); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + flex-grow: 1; + } - [data-slot="apply-patch-file-header"] { - display: flex; + [data-slot="apply-patch-trigger-actions"] { + flex-shrink: 0; + display: inline-flex; align-items: center; - gap: 8px; - padding: 8px 12px; - background-color: transparent; + gap: 10px; } [data-slot="apply-patch-file-action"] { @@ -1257,26 +1266,23 @@ } } - [data-slot="apply-patch-file-path"] { - font-family: var(--font-family-mono); - font-size: var(--font-size-small); - color: var(--text-weak); - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - flex-grow: 1; - } - [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-component="apply-patch-file"] + [data-component="apply-patch-file"] { - border-top: 1px solid var(--border-weaker-base); + [data-slot="apply-patch-file-chevron"] { + display: inline-flex; + color: var(--icon-weaker); + transform: rotate(-90deg); + transition: transform 0.15s ease; + } + + [data-slot="accordion-item"][data-expanded] [data-slot="apply-patch-file-chevron"] { + transform: rotate(0deg); + } } [data-component="apply-patch-file-diff"] { |
