Skip to content

Commit 06794e2

Browse files
authored
fix: fix oneof and view layouts styles (#62)
1 parent 9a86c37 commit 06794e2

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
display: flex;
66

77
&__inner {
8+
max-width: 100%;
89
display: flex;
910
flex-direction: column;
1011
justify-content: center;

src/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@
1010
}
1111

1212
@include with-copy-button();
13+
14+
&__inner {
15+
max-width: 100%;
16+
}
1317
}

src/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const ViewTransparent = <T extends FormValue, S extends Spec>({
1515
}: ViewLayoutProps<T, S>) =>
1616
isNotEmptyValue(value, spec) ? (
1717
<div className={b()}>
18-
<div>{children}</div>
18+
<div className={b('inner')}>{children}</div>
1919
<CopyButton spec={spec} value={value} />
2020
</div>
2121
) : null;

src/lib/kit/components/Views/OneOfView/OneOfView.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
margin-bottom: 20px;
66
}
77

8+
&:last-child > .#{$ns}group-indent {
9+
margin-bottom: 0;
10+
}
11+
812
&_flat {
913
& > .#{$ns}group-indent {
1014
margin: 0 0 20px;

0 commit comments

Comments
 (0)