Skip to content

Commit cd8aa2c

Browse files
committed
Improve radial gradient opacity in main.css and encode addon links in useFilterAddons hook
1 parent 962ac16 commit cd8aa2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/assets/css/main.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
position: absolute;
146146
width: 600px;
147147
height: 600px;
148-
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 60%);
148+
background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 20%, transparent 60%);
149149
border-radius: 30%;
150150
transform: translate(-50%, -50%);
151151
pointer-events: none;

src/hook/useFilterAddons.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const useFilterAddons = (data: AddonsDataState[], onOpen: () => void) => {
3737
}
3838

3939
const handleSharedAddon = (addon: string) => {
40-
const link = `${window.location.origin}/#/download/${addon}`
40+
const formattedAddon = encodeURIComponent(addon)
41+
const link = `${window.location.origin}/#/download/${formattedAddon}`
4142
navigator.clipboard.writeText(link)
4243
toast.success(`Copied ${addon} to clipboard`)
4344
}

0 commit comments

Comments
 (0)