Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9b1765

Browse files
committed
Fix styles
1 parent 4a92175 commit f9b1765

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

site/src/components/FileUpload/FileUpload.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const FileUpload: FC<FileUploadProps> = ({
6666
{isUploading ? (
6767
<CircularProgress size={32} />
6868
) : (
69-
<CloudUploadIcon className="size-icon-lg" css={styles.icon} />
69+
<CloudUploadIcon className="size-16" />
7070
)}
7171
</div>
7272

@@ -164,10 +164,6 @@ const styles = {
164164
justifyContent: "center",
165165
},
166166

167-
icon: {
168-
fontSize: 64,
169-
},
170-
171167
title: {
172168
fontSize: 16,
173169
lineHeight: "1",

site/src/components/FullPageLayout/Topbar.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
cloneElement,
1212
forwardRef,
1313
} from "react";
14+
import { cn } from "utils/cn";
1415

1516
export const Topbar: FC<HTMLAttributes<HTMLElement>> = (props) => {
1617
const theme = useTheme();
@@ -89,7 +90,7 @@ type TopbarIconProps = HTMLAttributes<HTMLOrSVGElement>;
8990

9091
export const TopbarIcon = forwardRef<HTMLOrSVGElement, TopbarIconProps>(
9192
(props: TopbarIconProps, ref) => {
92-
const { children, ...restProps } = props;
93+
const { children, className, ...restProps } = props;
9394
const theme = useTheme();
9495

9596
return cloneElement(
@@ -101,7 +102,10 @@ export const TopbarIcon = forwardRef<HTMLOrSVGElement, TopbarIconProps>(
101102
{
102103
...restProps,
103104
ref,
104-
className: css({ fontSize: 16, color: theme.palette.text.disabled }),
105+
className: cn([
106+
css({ fontSize: 16, color: theme.palette.text.disabled }),
107+
"size-icon-sm",
108+
]),
105109
},
106110
);
107111
},

site/src/pages/WorkspacePage/WorkspaceTopbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
199199
{shouldDisplayDormantData && (
200200
<TopbarData>
201201
<TopbarIcon>
202-
<TrashIcon className="size-icon-sm" />
202+
<TrashIcon />
203203
</TopbarIcon>
204204
<Link
205205
component={RouterLink}

0 commit comments

Comments
 (0)