Skip to content

Commit

Permalink
fix positioning and max-width of content in compensation (#1053)
Browse files Browse the repository at this point in the history
* fix positioning and max-width  of content in compensation

* fix lint
  • Loading branch information
anemne authored Dec 13, 2024
1 parent 4e8d9bb commit 5be2b70
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/compensations/CompensationSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { CompanyLocation } from "studio/lib/interfaces/companyDetails";
import { CompensationsPage } from "studio/lib/interfaces/compensations";
import { LocaleDocument } from "studio/lib/interfaces/locale";

import styles from "./compensations.module.css";
import BenefitsByLocation from "./components/benefitsByLocation/BenefitsByLocation";
import YearlyBonuses from "./components/yearlyBonuses/YearlyBonuses";

Expand Down Expand Up @@ -42,7 +43,7 @@ export default function CompensationSelector({
)?.yearlyBonuses;

return (
<>
<div className={styles.compensationWrapper}>
{yearlyBonusesForLocation && (
<YearlyBonuses bonuses={yearlyBonusesForLocation} locale={locale} />
)}
Expand All @@ -55,6 +56,6 @@ export default function CompensationSelector({
/>

<BenefitsByLocation benefits={benefitsFilteredByLocation} />
</>
</div>
);
}
4 changes: 3 additions & 1 deletion src/components/compensations/Compensations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default async function Compensations({
}: CompensationsProps) {
return (
<div className={styles.wrapper}>
<Text type="h1">{compensations.basicTitle}</Text>
<Text className={styles.text} type="h1">
{compensations.basicTitle}
</Text>

<CompensationCalculator
section={compensations.compensationCalculator}
Expand Down
12 changes: 12 additions & 0 deletions src/components/compensations/compensations.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@
flex-direction: column;
padding: 10rem 5rem;
gap: 5rem;
justify-content: center;
width: 100%;
}

.text {
max-width: var(--max-content-width-large);
align-self: center;
}

.compensationWrapper {
max-width: var(--max-content-width-large);
align-self: center;
}

0 comments on commit 5be2b70

Please sign in to comment.