Skip to content

Commit 1ade003

Browse files
authored
refactor(flat-components): update empty rooms image size (#2049)
1 parent effbe87 commit 1ade003

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

packages/flat-components/src/components/ChatPanel/ChatMessages/style.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
pointer-events: none;
1313

1414
img {
15-
width: 200px;
15+
width: 160px;
1616
pointer-events: none;
1717
}
1818
}
@@ -38,4 +38,4 @@
3838
height: 100%;
3939
overflow-y: auto;
4040
padding: 6px 0;
41-
}
41+
}

packages/flat-components/src/components/HomePage/RoomList/icons/EmptyHistorySVG.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ const EmptyHistorySVG: React.FC<EmptyHistorySVGProps> = ({ isDark }) => {
99
const style = isDark ? ({ mixBlendMode: "soft-light" } as CSSProperties) : undefined;
1010

1111
return (
12-
<svg fill="none" height="240" width="240" xmlns="http://www.w3.org/2000/svg">
12+
<svg
13+
fill="none"
14+
height="160"
15+
viewBox="0 0 240 240"
16+
width="160"
17+
xmlns="http://www.w3.org/2000/svg"
18+
>
1319
<path
1420
d="M46 195s57.422-30.374 32.73-55.013c-15.42-15.388-28.292-38.205-29.588-59.412C47.922 60.748 65.812 44.924 86.806 45c16.09.054 28.65 7.878 38.899 18.806 8.549 9.12 23.442 38.754 40.348 34.407 3.638-.938 6.238-3.813 9.121-6.078 13.23-10.401 19.179 7.169 19.331 16.533.175 10.73-2.204 21.558-4.781 31.968-1.533 6.176-13.445 54.364-17.746 54.364H46Z"
1521
fill="url(#empty-history-svg)"

packages/flat-components/src/components/HomePage/RoomList/icons/EmptyRoomSVG.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ const EmptyRoomSVG: React.FC<EmptyRoomSVGProps> = ({ isDark }) => {
88
const bgColor = isDark ? "#93BAFF" : "#fff";
99

1010
return (
11-
<svg fill="none" height="240" width="240" xmlns="http://www.w3.org/2000/svg">
11+
<svg
12+
fill="none"
13+
height="160"
14+
viewBox="0 0 240 240"
15+
width="160"
16+
xmlns="http://www.w3.org/2000/svg"
17+
>
1218
<path
1319
d="M31.053 130.551c6.866-4.374 19.22-13.216 15.238-23.983-11.794-31.877.287-53.895 21.487-56.299 44.165-5 36.059 61.558 100.803 41.98 45.266-13.691 76.839 24.972 45.436 51.184-22.6 18.863-45.754 46.567-45.754 46.567l-87.46-.316c-17.813-25.385-48.663-22.212-61.811-29.708-16.431-9.365 5.43-25.205 12.058-29.425"
1420
fill="url(#empty-room-svg)"

0 commit comments

Comments
 (0)