mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
fix(app): fix flicker and navigation when collapsing/expanding projects (#6658)
This commit is contained in:
parent
8e9a0c4ad0
commit
bbd1c071c4
4 changed files with 12 additions and 15 deletions
|
|
@ -48,12 +48,7 @@ import {
|
|||
NewSessionView,
|
||||
} from "@/components/session"
|
||||
import { usePlatform } from "@/context/platform"
|
||||
|
||||
function same<T>(a: readonly T[], b: readonly T[]) {
|
||||
if (a === b) return true
|
||||
if (a.length !== b.length) return false
|
||||
return a.every((x, i) => x === b[i])
|
||||
}
|
||||
import { same } from "@/utils/same"
|
||||
|
||||
type DiffStyle = "unified" | "split"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue