Skip to content

Commit

Permalink
Adds uniform horizontal spacing to facets list based on the container
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Feb 4, 2025
1 parent 8fec619 commit 3f91f7f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/FacetList/FacetListGroup.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
--bs-accordion-inner-border: 1px solid #cdd2d5;
--bs-accordion-btn-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23cdd2d5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Cpath d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
--bs-accordion-btn-active-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23cdd2d5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Cpath d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
padding-right: 1rem;
}
2 changes: 1 addition & 1 deletion src/components/SearchOrganization/SearchOrganization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function SearchOrganizations(props: Props) {
</Col>
</Row>
<Row>
<Col md={3}>
<Col md={3} className='px-4'>
{renderFacets()}
</Col>
<Col md={9}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchRepository/SearchRepository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function SearchRepositories({ variables }: Props) {

return (<Container fluid>
<Row>
<Col md={3}>{renderFacets()}</Col>
<Col md={3} className='pe-4'>{renderFacets()}</Col>
<Col md={9}>{renderResults()}</Col>
</Row>
</Container>)
Expand Down
2 changes: 1 addition & 1 deletion src/components/WorksListing/WorksListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function WorksListing({

return (
<Row>
<Col md={3} className="d-none d-md-block">
<Col md={3} className={'d-none d-md-block' + (['doi.org/?'].includes(url) ? ' px-4' : ' pe-4')}>
{ loadingFacets ? <Row><LoadingFacetList count={4} numberOfLines={10}/></Row>: renderFacets() }
</Col>
<Col md={9}>
Expand Down

0 comments on commit 3f91f7f

Please sign in to comment.