wip(app): line selection
This commit is contained in:
@@ -6,6 +6,7 @@ export type DiffProps<T = {}> = FileDiffOptions<T> & {
|
||||
after: FileContents
|
||||
annotations?: DiffLineAnnotation<T>[]
|
||||
selectedLines?: SelectedLineRange | null
|
||||
commentedLines?: SelectedLineRange[]
|
||||
onRendered?: () => void
|
||||
class?: string
|
||||
classList?: ComponentProps<"div">["classList"]
|
||||
@@ -42,6 +43,15 @@ const unsafeCSS = `
|
||||
background-color: var(--diffs-bg-selection-text);
|
||||
}
|
||||
|
||||
[data-diffs] [data-comment-selected] {
|
||||
background-color: var(--diffs-bg-selection);
|
||||
}
|
||||
|
||||
[data-diffs] [data-comment-selected] [data-column-number] {
|
||||
background-color: var(--diffs-bg-selection-number);
|
||||
color: var(--diffs-selection-number-fg);
|
||||
}
|
||||
|
||||
[data-diffs-header],
|
||||
[data-diffs] {
|
||||
[data-separator-wrapper] {
|
||||
|
||||
Reference in New Issue
Block a user