Skip to content

Commit eaeb8a7

Browse files
committed
finished styling for slider and jump/current buttons
1 parent 46549c8 commit eaeb8a7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/app/components/Actions/RouteDescription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const RouteDescription = (props: RouteProps): JSX.Element => {
1818
return (
1919
<div className='route-container'>
2020
<div className='route-header'>Route: {url.pathname}</div>
21-
<div className='route-content' style={{ height: `${actions.length * 42}px` }}>
21+
<div className='route-content' style={{ height: `${actions.length * 40.5}px` }}>
2222
<div>
2323
<VerticalSlider className='main-slider' snapshots={actions} />
2424
</div>

src/app/styles/components/_actionComponent.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,17 @@
7171
.jump-button,
7272
.current-location {
7373
min-width: 90px;
74-
padding: 4px 8px;
74+
height: 28px; /* Fixed height for better vertical centering */
75+
padding: 0 8px; /* Reduced vertical padding */
7576
border-radius: 6px;
7677
font-size: 0.9375rem;
7778
font-weight: 500;
78-
text-align: center;
79+
display: flex;
80+
align-items: center;
81+
justify-content: center;
7982
border: none;
8083
transition: all 200ms ease;
81-
margin-top: 6px;
84+
margin: 0; /* Removed top margin */
8285
}
8386

8487
.time-button {

0 commit comments

Comments
 (0)