Skip to content

Commit aa7ac11

Browse files
committed
fix: svg
1 parent df8be38 commit aa7ac11

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

src/components/SvgDisplay/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSX, useEffect, useRef, useState } from "react";
1+
import { JSX, useEffect, useRef } from "react";
22
import styles from "./styles.module.css";
33

44
type SvgDisplayProps = {

src/components/SvgDisplay/styles.module.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
.svgDisplay {
2-
margin: 2rem 0;
2+
margin-top: 1rem;
3+
margin-bottom: 1rem;
34
border-radius: 12px;
45
overflow: hidden;
5-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
6+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
7+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
68
transition: box-shadow 0.3s;
79
}
810

911
.svgDisplay:hover {
10-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
12+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
13+
0 4px 6px -2px rgba(0, 0, 0, 0.05);
1114
}
1215

1316
.darkMode {
@@ -16,7 +19,11 @@
1619

1720
.header {
1821
padding: 1.25rem;
19-
background: linear-gradient(135deg, var(--ifm-color-primary-lighter) 0%, var(--ifm-color-primary-light) 100%);
22+
background: linear-gradient(
23+
135deg,
24+
var(--ifm-color-primary-lighter) 0%,
25+
var(--ifm-color-primary-light) 100%
26+
);
2027
color: white;
2128
}
2229

@@ -42,11 +49,11 @@
4249
.header {
4350
padding: 1rem;
4451
}
45-
52+
4653
.title {
4754
font-size: 1.125rem;
4855
}
49-
56+
5057
.description {
5158
font-size: 0.875rem;
5259
}
@@ -93,7 +100,8 @@
93100
background: white;
94101
border-radius: 8px;
95102
padding: 0.5rem;
96-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
103+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
104+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
97105
z-index: 10;
98106
}
99107

@@ -145,7 +153,7 @@
145153
.controlButton {
146154
padding: 0.375rem;
147155
}
148-
156+
149157
.controlButton svg {
150158
width: 16px;
151159
height: 16px;
@@ -308,9 +316,9 @@
308316
padding: 0.5rem 1rem;
309317
gap: 0.5rem;
310318
}
311-
319+
312320
.fullscreenControls button {
313321
padding: 0.375rem 0.75rem;
314322
font-size: 0.875rem;
315323
}
316-
}
324+
}

0 commit comments

Comments
 (0)