diff --git a/app/search/page.js b/app/search/page.js index acf44e1..335b06f 100644 --- a/app/search/page.js +++ b/app/search/page.js @@ -84,6 +84,9 @@ export default function Search() { autoFocus={true} value={searchValue} ref={inputRef} + style={{ + "--font-size": "16px", + }} onChange={(val) => { setSearchValue((old) => { let test = (e) => { diff --git a/components/Photos/index.js b/components/Photos/index.js index f76afd6..2dd91fe 100644 --- a/components/Photos/index.js +++ b/components/Photos/index.js @@ -71,6 +71,11 @@ export default function Photos({ mediaDom.className = `${ photos[index]?.type == "hid" ? "mediaDom photos-body" : "mediaDom" }`; + const bodyBox = document.getElementsByClassName("photos-bodyBox")[0]; + setTimeout(() => { + bodyBox.firstChild.lastChild.style.transform=`translateX(-${index*(window.innerWidth+16)}px)`; + console.log(bodyBox.firstChild.lastChild.style.transform) + }, 600); }, afterClose: () => { mediaDom.remove(); diff --git a/components/StreamerNavigator/index.js b/components/StreamerNavigator/index.js index b186f10..885ecdc 100644 --- a/components/StreamerNavigator/index.js +++ b/components/StreamerNavigator/index.js @@ -25,7 +25,7 @@ export default function StreamerNavigator({ return (

- {streamerInfo?.streamer_ext?.bio} + {!streamerInfo?.streamer_ext?.zones?.length ? streamerInfo?.streamer_ext?.bio:streamerInfo?.streamer_ext?.zones[0]?.profile}

{ handleCloseMask(); - router.push("/profile/"+streamerInfo?.mid); + router.replace("/profile/"+streamerInfo?.streamer_ext?.mid); } : () => { handleCloseMask(); - router.push("/space/person_space_introduce/"+streamerInfo?.mid); + router.replace("/space/person_space_introduce/"+streamerInfo?.streamer_ext?.mid); } } className="w-full p-2 mt-4 text-base rounded-full bg-[#FF669E] text-center"