Skip to content

Commit

Permalink
optimize json
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPi3141 committed Nov 1, 2024
1 parent 0c32980 commit a89af88
Show file tree
Hide file tree
Showing 3 changed files with 574 additions and 574 deletions.
8 changes: 4 additions & 4 deletions app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const App = ({ ffmpegRef, isServer }) => {
data-tooltip-content={avatar.name}
className="border-2 border-surface1 bg-surface1 p-2 rounded-[5px] w-full aspect-square avatar-preset outline-none"
onClick={(e) => {
setAvUrl(baseImgUrl + avatar.file);
setAvUrl(`${baseImgUrl}/avatars/${avatar.file}`);
for (const el of document.querySelectorAll(
"button.avatar-preset.border-2.border-primary",
)) {
Expand All @@ -249,7 +249,7 @@ const App = ({ ffmpegRef, isServer }) => {
}}
>
<Image
src={avatar.file}
src={`/avatars/${avatar.file}`}
className="rounded-full pointer-events-none"
/>
</button>
Expand Down Expand Up @@ -398,7 +398,7 @@ const App = ({ ffmpegRef, isServer }) => {
onClick={(e) => {
setName(decor.name);
setDescription(decor.description);
setDecoUrl(decor.file);
setDecoUrl(`/decorations/${decor.file}`);
for (const el of document.querySelectorAll(
"button.decor.border-2.border-primary",
)) {
Expand All @@ -410,7 +410,7 @@ const App = ({ ffmpegRef, isServer }) => {
}}
>
<Image
src={decor.file}
src={`/decorations/${decor.file}`}
className="pointer-events-none"
/>
</button>
Expand Down
Loading

0 comments on commit a89af88

Please sign in to comment.