Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: remove extra space at top-pages #363

Merged
merged 5 commits into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -6,4 +6,8 @@
.main {
flex-direction: row;
font-family: Heebo;
}

.page-title{
margin-top: 0;
}
2 changes: 1 addition & 1 deletion src/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ const StyledContent = styled(Content)`
overflow: auto;
`
const StyledBody = styled.div`
padding: 24px;
padding: 0 24px;
min-height: 360px;
`

6 changes: 4 additions & 2 deletions src/pages/about/index.tsx
Original file line number Diff line number Diff line change
@@ -10,7 +10,9 @@ const About = () => {
return (
<AboutStyle>
<Space direction="vertical" size="middle">
<Title level={3}>קצת עלינו</Title>
<Title className="page-title" level={3}>
קצת עלינו
</Title>
<WhatIsWebsite />
<DiscoveredMistake />
<Privacy />
@@ -139,7 +141,7 @@ const Funding = () => {
const AboutStyle = styled.div`
display: flex;
flex-direction: column;
padding: 1rem;
padding: 0 1rem;
& .about-center-container {
width: 100%;
max-width: 770px;
5 changes: 2 additions & 3 deletions src/pages/dashboard/DashboardPage.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../resources/variables';
@import "../../resources/variables";

.title {
font-weight: 500;
@@ -8,9 +8,8 @@
}

.widget {

.chart {
height: 400px;
overflow-y: scroll;
}
}
}
5 changes: 4 additions & 1 deletion src/pages/dashboard/DashboardPage.tsx
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ import moment from 'moment'

// Styling
import './DashboardPage.scss'
import 'src/App.scss'
import { PageContainer } from '../components/PageContainer'
import { useTranslation } from 'react-i18next'
import { Alert, Typography } from 'antd'
@@ -30,7 +31,9 @@ const DashboardPage = () => {

return (
<PageContainer>
<Title level={3}>ביצועי תחבורה ציבורית</Title>
<Title className="page-title" level={3}>
ביצועי תחבורה ציבורית
</Title>
<Alert message="תפקוד תחבורה ציבורית לפי פרמטרים שונים" type="info" />
<Grid
container
6 changes: 5 additions & 1 deletion src/pages/historicTimeline/index.tsx
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@ import OperatorSelector from 'src/pages/components/OperatorSelector'
import { Row } from 'src/pages/components/Row'
import { INPUT_SIZE, MARGIN_MEDIUM } from 'src/resources/sizes'
import styled from 'styled-components'
import 'src/App.scss'

import {
getGtfsStopHitTimesAsync,
getRoutesAsync,
@@ -137,7 +139,9 @@ const TimelinePage = () => {

return (
<PageContainer>
<Title level={3}>הסטורית נסיעות</Title>
<Title className="page-title" level={3}>
הסטורית נסיעות
</Title>
<Alert message="רשימת זמני עצירה בתחנה שנבחרה" type="info" />
<Grid container spacing={2} sx={{ maxWidth: INPUT_SIZE }}>
{/* choose date */}
4 changes: 3 additions & 1 deletion src/pages/realtimeMap/index.tsx
Original file line number Diff line number Diff line change
@@ -96,7 +96,9 @@ export default function RealtimeMapPage() {

return (
<PageContainer className="map-container">
<Title level={3}>{t('realtime_map_explanation').slice(0, 25)}</Title>
<Title className="page-title" level={3}>
{t('realtime_map_explanation').slice(0, 25)}
</Title>
<Grid container spacing={2} sx={{ maxWidth: INPUT_SIZE }}>
<Grid xs={12} className="hideOnMobile">
<Label text={t('realtime_map_explanation')} />