mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-24 17:11:00 +00:00
feat: skin viewer in skin changing menu
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user