mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Moved scroll out to tool panel and works better with zoom
This commit is contained in:
parent
888bac9408
commit
b1508e1631
@ -8,6 +8,7 @@ import ToolRenderer from './ToolRenderer';
|
|||||||
import ToolSearch from './toolPicker/ToolSearch';
|
import ToolSearch from './toolPicker/ToolSearch';
|
||||||
import { useSidebarContext } from "../../contexts/SidebarContext";
|
import { useSidebarContext } from "../../contexts/SidebarContext";
|
||||||
import rainbowStyles from '../../styles/rainbow.module.css';
|
import rainbowStyles from '../../styles/rainbow.module.css';
|
||||||
|
import { Stack, ScrollArea } from '@mantine/core';
|
||||||
|
|
||||||
// No props needed - component uses context
|
// No props needed - component uses context
|
||||||
|
|
||||||
@ -91,15 +92,17 @@ export default function ToolPanel() {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
// Selected Tool Content View
|
// Selected Tool Content View
|
||||||
<div className="flex-1 flex flex-col">
|
<div className="flex-1 flex flex-col overflow-hidden">
|
||||||
{/* Tool content */}
|
{/* Tool content */}
|
||||||
<div className="flex-1 min-h-0">
|
<div className="flex-1 min-h-0 overflow-hidden">
|
||||||
|
<ScrollArea h="100%">
|
||||||
{selectedToolKey && (
|
{selectedToolKey && (
|
||||||
<ToolRenderer
|
<ToolRenderer
|
||||||
selectedToolKey={selectedToolKey}
|
selectedToolKey={selectedToolKey}
|
||||||
onPreviewFile={setPreviewFile}
|
onPreviewFile={setPreviewFile}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
</ScrollArea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -65,7 +65,8 @@ export function createToolFlow(config: ToolFlowConfig) {
|
|||||||
const steps = createToolSteps();
|
const steps = createToolSteps();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack gap="sm" p="sm" h="95vh" w="100%" style={{ overflow: 'auto' }}>
|
<Stack gap="sm" p="sm" >
|
||||||
|
{/* <Stack gap="sm" p="sm" h="100%" w="100%" style={{ overflow: 'auto' }}> */}
|
||||||
<ToolStepProvider forceStepNumbers={config.forceStepNumbers}>
|
<ToolStepProvider forceStepNumbers={config.forceStepNumbers}>
|
||||||
{config.title && <ToolWorkflowTitle {...config.title} />}
|
{config.title && <ToolWorkflowTitle {...config.title} />}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user