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

fix: styling issues in features section #1039

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions sites/public/src/ListingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ export const ListingView = (props: ListingProps) => {
depositMax={listing.depositMax}
applicationFee={listing.applicationFee}
costsNotIncluded={listing.costsNotIncluded}
containerClass={"mt-4"}
/>
</div>
)}
Expand Down
3 changes: 2 additions & 1 deletion ui-components/src/page_components/listing/AdditionalFees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface AdditionalFeesProps {
applicationFee?: string
costsNotIncluded?: string
depositHelperText?: string
containerClass?: string
}

const AdditionalFees = (props: AdditionalFeesProps) => {
Expand All @@ -23,7 +24,7 @@ const AdditionalFees = (props: AdditionalFeesProps) => {
else return `$${max}`
}
return (
<div className="info-card bg-gray-100 border-0">
<div className={`info-card bg-gray-100 border-0 ${props.containerClass}`}>
<p className="info-card__title">{t("listings.sections.additionalFees")}</p>
<div className="info-card__columns text-sm">
{props.applicationFee && (
Expand Down
8 changes: 5 additions & 3 deletions ui-components/src/text/Description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@apply w-full;
@apply flex;
@apply flex-col;
@apply mb-3;
@screen md {
@apply flex-row;
}
Expand All @@ -17,6 +18,8 @@

.description__body {
@apply mb-4;
@apply flex;
@apply items-center;

@screen md {
padding-top: 0.4em;
Expand All @@ -30,10 +33,9 @@
.description__title {
@apply text-lg;
@apply text-gray-800;
@apply mb-3;
clear: left;
width: 160px;
min-width: 160px;
width: 170px;
min-width: 170px;

@screen md {
@apply pl-4;
Expand Down