diff options
| author | Shoubhit Dash <[email protected]> | 2026-04-01 16:11:57 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-01 16:11:57 +0530 |
| commit | a3a6cf1c075c40c87980dda181d586a1d06ea304 (patch) | |
| tree | 71b3c3d7144f7c38eb73d7e173852858313fc4bf /packages/ui/src/components/line-comment-styles.ts | |
| parent | 47a676111a3532aebed01110494742e536b7e5b4 (diff) | |
| download | opencode-a3a6cf1c075c40c87980dda181d586a1d06ea304.tar.gz opencode-a3a6cf1c075c40c87980dda181d586a1d06ea304.zip | |
feat(comments): support file mentions (#20447)
Diffstat (limited to 'packages/ui/src/components/line-comment-styles.ts')
| -rw-r--r-- | packages/ui/src/components/line-comment-styles.ts | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/ui/src/components/line-comment-styles.ts b/packages/ui/src/components/line-comment-styles.ts index 8fd02f088..59af66041 100644 --- a/packages/ui/src/components/line-comment-styles.ts +++ b/packages/ui/src/components/line-comment-styles.ts @@ -178,6 +178,58 @@ export const lineCommentStyles = ` box-shadow: var(--shadow-xs-border-select); } +[data-component="line-comment"] [data-slot="line-comment-mention-list"] { + display: flex; + flex-direction: column; + gap: 4px; + max-height: 180px; + overflow: auto; + padding: 4px; + border: 1px solid var(--border-base); + border-radius: var(--radius-md); + background: var(--surface-base); +} + +[data-component="line-comment"] [data-slot="line-comment-mention-item"] { + display: flex; + align-items: center; + gap: 8px; + width: 100%; + min-width: 0; + padding: 6px 8px; + border: 0; + border-radius: var(--radius-sm); + background: transparent; + color: var(--text-strong); + text-align: left; +} + +[data-component="line-comment"] [data-slot="line-comment-mention-item"][data-active] { + background: var(--surface-raised-base-hover); +} + +[data-component="line-comment"] [data-slot="line-comment-mention-path"] { + display: flex; + align-items: center; + min-width: 0; + font-family: var(--font-family-sans); + font-size: var(--font-size-small); + line-height: var(--line-height-large); +} + +[data-component="line-comment"] [data-slot="line-comment-mention-dir"] { + min-width: 0; + color: var(--text-weak); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +[data-component="line-comment"] [data-slot="line-comment-mention-file"] { + color: var(--text-strong); + white-space: nowrap; +} + [data-component="line-comment"] [data-slot="line-comment-actions"] { display: flex; align-items: center; |
