mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
enable scrollbar
This commit is contained in:
@@ -299,6 +299,7 @@ function App() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Toggle debug panel",
|
title: "Toggle debug panel",
|
||||||
|
category: "System",
|
||||||
value: "app.debug",
|
value: "app.debug",
|
||||||
onSelect: (dialog) => {
|
onSelect: (dialog) => {
|
||||||
renderer.toggleDebugOverlay()
|
renderer.toggleDebugOverlay()
|
||||||
@@ -307,6 +308,7 @@ function App() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Toggle console",
|
title: "Toggle console",
|
||||||
|
category: "System",
|
||||||
value: "app.fps",
|
value: "app.fps",
|
||||||
onSelect: (dialog) => {
|
onSelect: (dialog) => {
|
||||||
renderer.console.toggle()
|
renderer.console.toggle()
|
||||||
|
|||||||
@@ -677,7 +677,15 @@ export function Session() {
|
|||||||
</Show>
|
</Show>
|
||||||
<scrollbox
|
<scrollbox
|
||||||
ref={(r) => (scroll = r)}
|
ref={(r) => (scroll = r)}
|
||||||
scrollbarOptions={{ visible: false }}
|
scrollbarOptions={{
|
||||||
|
trackOptions: {
|
||||||
|
backgroundColor: theme.backgroundElement,
|
||||||
|
foregroundColor: theme.primary,
|
||||||
|
},
|
||||||
|
arrowOptions: {
|
||||||
|
foregroundColor: theme.primary,
|
||||||
|
},
|
||||||
|
}}
|
||||||
stickyScroll={true}
|
stickyScroll={true}
|
||||||
stickyStart="bottom"
|
stickyStart="bottom"
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
|
|||||||
Reference in New Issue
Block a user