feat: skin viewer in skin changing menu

This commit is contained in:
neoapps-dev
2026-06-14 21:11:38 +03:00
parent ffd4e22d4a
commit 1b0150b719
3 changed files with 56 additions and 39 deletions
-1
View File
@@ -861,7 +861,6 @@ const SettingsView = memo(function SettingsView() {
<div className="w-full space-y-3 flex flex-col items-center overflow-y-auto max-h-[50vh] py-2 settings-scrollbar">
{settingsItems.map((item, index) => {
if (item.id === "back") return null;
if (item.type === "slider") {
return (
<div
+19 -4
View File
@@ -8,6 +8,7 @@ import {
useSkin,
useConfig,
} from "../../context/LauncherContext";
import SkinViewer from "../common/SkinViewer";
interface SavedSkin {
id: string;
@@ -674,10 +675,9 @@ const SkinsView = memo(function SkinsView() {
className="absolute max-w-none"
style={{
width: "auto",
height: "200%",
left: "50%",
top: "-50%",
transform: "translateX(-50%)",
height: "100%",
left: "0",
top: "0",
imageRendering: "pixelated",
}}
loading="lazy"
@@ -703,6 +703,21 @@ const SkinsView = memo(function SkinsView() {
</div>
</div>
<div className="w-full max-w-160 shadow-2xl flex flex-col items-center">
<SkinViewer
username=""
setUsername={() => {}}
playPressSound={playPressSound}
skinUrl={skinUrl}
setSkinUrl={setSkinUrl}
capeUrl={capeUrl}
setActiveView={setActiveView}
isFocusedSection={false}
onNavigateRight={() => {}}
hideControls
/>
</div>
<button
data-index={BACK_BUTTON_INDEX}
onMouseEnter={() => setFocusIndex(BACK_BUTTON_INDEX)}