Skip to content

Commit

Permalink
fix: fixed display for one of (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus authored Apr 27, 2023
1 parent d64ae4a commit 823c8fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/lib/kit/components/Inputs/OneOf/OneOf.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
@import '../../../styles/variables';
@import '../../../styles/variables.scss';

.#{$ns}oneof {
display: flex;
flex-direction: column-reverse;
flex-direction: column;

&:last-child {
& > .#{$ns}group-indent {
margin-bottom: 0;

&:empty + .#{$ns}oneof__toggler {
margin-bottom: 0;
}
}
}

&__toggler {
margin-bottom: 15px;
}

.#{$ns}group-indent {
all: unset;

& > .#{$ns}use-search {
padding-top: 11px;
padding-left: $normalOffset;
margin-top: -11px;
margin-top: 4px;
margin-bottom: 20px;
margin-left: 5px;
border-left: 1px solid var(--yc-color-line-generic-accent);

&:empty {
display: none;
}

&:last-child {
margin-bottom: 0;
}

& > .#{$ns}simple-vertical-accordeon_view {
margin-top: -10px;
}
}
}
}
2 changes: 1 addition & 1 deletion src/lib/kit/components/Inputs/OneOf/OneOf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const OneOf: ObjectIndependentInput = (props) => {

return (
<div className={b()}>
<div>{toggler}</div>
{specProperties[oneOfValue] ? (
<GroupIndent>
<Controller
Expand All @@ -47,7 +48,6 @@ export const OneOf: ObjectIndependentInput = (props) => {
/>
</GroupIndent>
) : null}
<div className={b('toggler')}>{toggler}</div>
</div>
);
};

0 comments on commit 823c8fc

Please sign in to comment.