Skip to content

Commit

Permalink
style: Fix style/spacing inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Dec 4, 2023
1 parent 21db528 commit e2c3987
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/content-tags-drawer/ContentTagsCollapsible.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ const ContentTagsCollapsible = ({ contentId, taxonomyAndTagsData, editable }) =>
<SearchField
onSubmit={() => {}}
onChange={handleSearchChange}
className="mb-2"
/>

<ContentTagsDropDownSelector
Expand Down
1 change: 1 addition & 0 deletions src/content-tags-drawer/ContentTagsCollapsible.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.taxonomy-tags-selectable-box-set {
grid-auto-rows: unset !important;
grid-gap: unset !important;
overflow-y: scroll;
max-height: 20rem;
}
7 changes: 4 additions & 3 deletions src/content-tags-drawer/ContentTagsDropDownSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ const ContentTagsDropDownSelector = ({
return (
<>
{tags.map((taxonomyTag, i) => (
<div className="d-flex flex-column" key={`selector-div-${taxonomyTag.value}`} style={{ paddingLeft: `${level * 1}rem` }}>
<div className="d-flex flex-column" key={`selector-div-${taxonomyTag.value}`} style={{ paddingLeft: `${level === 0 ? '0' : '1' }rem` }}>
<div className="d-flex">
<SelectableBox
inputHidden={false}
type="checkbox"
className="taxonomy-tags-selectable-box"
className="d-flex align-items-center taxonomy-tags-selectable-box"
aria-label={`${taxonomyTag.value} checkbox`}
data-selectable-box="taxonomy-tags"
value={[...lineage, encodeURIComponent(taxonomyTag.value)].join(',')}
Expand Down Expand Up @@ -125,9 +125,10 @@ const ContentTagsDropDownSelector = ({
{ nextPage && isTaxonomyTagsLoaded
? (
<Button
style={{ marginLeft: `${level * 1}rem` }}
style={{ marginLeft: `${level === 0 ? '0' : '1' }rem` }}
variant="outline-primary"
onClick={loadMoreTags}
className="mt-1 mb-1"
>
<FormattedMessage {...messages.loadMoreTagsButtonText} />
</Button>
Expand Down

0 comments on commit e2c3987

Please sign in to comment.