Skip to content

Commit

Permalink
chore(openapi): tweak padding in property details (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh authored Aug 30, 2023
1 parent 9d8dde7 commit 66dbb80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function PropertyDetailsNested({
* Accepts optional props that affect the appearance of the tree styles:
* - `hideBorder` - hide the tree marker, but retain spacing
* - `hideIndicator` - hide the tree marker, which shifts positioning,
* but still retains a smaller amount of consistent left padding.
* and removes the consistent left padding.
* - `listItemStyle` - affects the tree marker style. By default,
* the marker is a vertical line that extends to the bottom of the
* container, creating the appearance of a continuous line for
Expand All @@ -189,7 +189,11 @@ function TreeContent({
hideIndicator?: boolean
}>) {
return (
<div className={s.treeContent}>
<div
className={classNames(s.treeContent, {
[s.hideIndicator]: hideIndicator,
})}
>
{hideIndicator ? null : (
<div className={s.treeIndicatorContainer}>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ Tree content styling
display: flex;
gap: 4px;
padding-left: 8px;

&.hideIndicator {
padding-left: 0;
}
}

.treeIndicatorContainer {
Expand Down

1 comment on commit 66dbb80

@vercel
Copy link

@vercel vercel bot commented on 66dbb80 Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.