Skip to content

Commit 4c1c412

Browse files
committed
adjusted for fixed siwth of action container
1 parent 8864b70 commit 4c1c412

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

src/app/components/Actions/RouteDescription.tsx

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,18 @@ const RouteDescription = (props: RouteProps): JSX.Element => {
1616
const url: URL = new URL(actions[0].props.routePath); // Use new URL to use the url.pathname method.
1717

1818
return (
19-
<div className='routedescription' >
20-
<h3 className='route'>Route: {url.pathname}</h3>
21-
<div style={{
22-
// div that contains slider and snapshots
23-
display: 'flex',
24-
flexDirection: 'row',
25-
height: `${actions.length * 30}px`,
26-
marginBottom: '50px'
27-
}}>
28-
<div style={{maxWidth: '50px'}}>
29-
<VerticalSlider className='main-slider' snapshots={actions} />
30-
</div>
31-
<div style={{marginTop: '10px'}}>
32-
{/* actual snapshots per route */}
33-
{actions}
34-
</div>
35-
</div>
19+
<div className='route-container'>
20+
<div className='route-header'>Route: {url.pathname}</div>
21+
<div className='route-content' style={{ height: `${actions.length * 30}px` }}>
22+
<div style={{ maxWidth: '50px' }}>
23+
<VerticalSlider className='main-slider' snapshots={actions} />
24+
</div>
25+
<div className='actions-container'>
26+
{/* actual snapshots per route */}
27+
{actions}
28+
</div>
3629
</div>
30+
</div>
3731
);
3832
};
3933

0 commit comments

Comments
 (0)