Skip to content

Commit fdcae89

Browse files
committed
fix: styles
1 parent ace25f1 commit fdcae89

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

examples/landing/components/editor/Toolbar/ToolbarRadio.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function StyledRadio(props) {
77
<Radio
88
disableRipple
99
color="default"
10+
size="small"
1011
sx={{
1112
'&.Mui-checked': {
1213
color: 'rgb(19, 115, 230)',

examples/landing/components/editor/Viewport/Sidebar/SidebarItem.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import classNames from 'classnames';
12
import React from 'react';
23
import { styled } from 'styled-components';
34

@@ -13,13 +14,15 @@ const SidebarItemDiv = styled.div<{ $visible?: boolean; $height?: string }>`
1314
? `1`
1415
: 'unset'};
1516
color: #545454;
17+
border-bottom: 1px solid transparent;
18+
border-color: ${(props) => (props.$visible ? '#eee' : 'transparent')};
1619
`;
1720

1821
const Chevron = styled.a<{ $visible: boolean }>`
1922
transform: rotate(${(props) => (props.$visible ? 180 : 0)}deg);
2023
svg {
21-
width: 8px;
22-
height: 8px;
24+
width: 10px;
25+
height: 10px;
2326
}
2427
`;
2528

@@ -30,6 +33,7 @@ export type SidebarItemProps = {
3033
visible?: boolean;
3134
onChange?: (bool: boolean) => void;
3235
children?: React.ReactNode;
36+
className?: string;
3337
};
3438

3539
const HeaderDiv = styled.div`
@@ -47,12 +51,13 @@ export const SidebarItem: React.FC<SidebarItemProps> = ({
4751
children,
4852
height,
4953
onChange,
54+
className,
5055
}) => {
5156
return (
5257
<SidebarItemDiv
5358
$visible={visible}
5459
$height={height}
55-
className="flex flex-col"
60+
className={classNames('flex flex-col', className)}
5661
>
5762
<HeaderDiv
5863
onClick={() => {
@@ -67,7 +72,7 @@ export const SidebarItem: React.FC<SidebarItemProps> = ({
6772
<h2 className="text-xs uppercase">{title}</h2>
6873
</div>
6974
<Chevron $visible={visible}>
70-
<Arrow />
75+
<Arrow viewBox="-2 -1 12 12" />
7176
</Chevron>
7277
</HeaderDiv>
7378
{visible ? (

examples/landing/components/editor/Viewport/Sidebar/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export const Sidebar = () => {
151151
height={!layersVisible ? 'full' : '55%'}
152152
visible={toolbarVisible}
153153
onChange={(val) => setToolbarVisible(val)}
154+
className="overflow-auto"
154155
>
155156
<Toolbar />
156157
</SidebarItem>

0 commit comments

Comments
 (0)