chore: generate
This commit is contained in:
parent
d595c7e265
commit
49028b6245
7 changed files with 11 additions and 18 deletions
|
|
@ -116,9 +116,7 @@ const FileTreeNodeV2 = (
|
||||||
function GuideLines(props: { level: number }) {
|
function GuideLines(props: { level: number }) {
|
||||||
return (
|
return (
|
||||||
<For each={Array.from({ length: props.level })}>
|
<For each={Array.from({ length: props.level })}>
|
||||||
{(_, index) => (
|
{(_, index) => <div data-slot="file-tree-v2-guide" style={`left: ${guideLineLeft(index())}px`} />}
|
||||||
<div data-slot="file-tree-v2-guide" style={`left: ${guideLineLeft(index())}px`} />
|
|
||||||
)}
|
|
||||||
</For>
|
</For>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,7 @@ export function OpenInAppV2(props: { directory: () => string }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Show when={props.directory() && state.canOpen()}>
|
<Show when={props.directory() && state.canOpen()}>
|
||||||
<SplitButtonV2
|
<SplitButtonV2 class="session-review-v2-open-in-app" onPointerDown={(event) => event.stopPropagation()}>
|
||||||
class="session-review-v2-open-in-app"
|
|
||||||
onPointerDown={(event) => event.stopPropagation()}
|
|
||||||
>
|
|
||||||
<TooltipV2
|
<TooltipV2
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
value={language.t("session.header.open.ariaLabel", { app: state.current().label })}
|
value={language.t("session.header.open.ariaLabel", { app: state.current().label })}
|
||||||
|
|
|
||||||
|
|
@ -163,10 +163,7 @@ export function useOpenInApp(input: { directory: () => string }) {
|
||||||
] as const
|
] as const
|
||||||
})
|
})
|
||||||
|
|
||||||
const [prefs, setPrefs] = persisted(
|
const [prefs, setPrefs] = persisted(Persist.global("open.app"), createStore({ app: "finder" as OpenApp | "finder" }))
|
||||||
Persist.global("open.app"),
|
|
||||||
createStore({ app: "finder" as OpenApp | "finder" }),
|
|
||||||
)
|
|
||||||
const [menu, setMenu] = createStore({ open: false })
|
const [menu, setMenu] = createStore({ open: false })
|
||||||
const [openRequest, setOpenRequest] = createStore({
|
const [openRequest, setOpenRequest] = createStore({
|
||||||
app: undefined as OpenApp | undefined,
|
app: undefined as OpenApp | undefined,
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ function FileCommentMenuV2(props: {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type ScrollPos = { x: number; y: number }
|
type ScrollPos = { x: number; y: number }
|
||||||
|
|
||||||
function createScrollSync(input: { tab: () => string; view: ReturnType<typeof useSessionLayout>["view"] }) {
|
function createScrollSync(input: { tab: () => string; view: ReturnType<typeof useSessionLayout>["view"] }) {
|
||||||
|
|
|
||||||
|
|
@ -768,9 +768,7 @@ export function SessionSidePanel(props: {
|
||||||
<>
|
<>
|
||||||
{props.reviewCount()}{" "}
|
{props.reviewCount()}{" "}
|
||||||
{language.t(
|
{language.t(
|
||||||
props.reviewCount() === 1
|
props.reviewCount() === 1 ? "session.review.change.one" : "session.review.change.other",
|
||||||
? "session.review.change.one"
|
|
||||||
: "session.review.change.other",
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -782,7 +782,12 @@ body[data-new-layout]
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-tabs-bar [data-slot="tabs-list"] > .sticky {
|
body[data-new-layout]
|
||||||
|
#review-panel
|
||||||
|
[data-component="tabs"]
|
||||||
|
.session-review-v2-tabs-bar
|
||||||
|
[data-slot="tabs-list"]
|
||||||
|
> .sticky {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -238,8 +238,7 @@ export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const nav = e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Enter"
|
const nav = e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Enter"
|
||||||
const ctrlNav =
|
const ctrlNav = e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && (e.key === "n" || e.key === "p")
|
||||||
e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && (e.key === "n" || e.key === "p")
|
|
||||||
if ((nav || ctrlNav) && mention.flat().length > 0) {
|
if ((nav || ctrlNav) && mention.flat().length > 0) {
|
||||||
mention.onKeyDown(e)
|
mention.onKeyDown(e)
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue