mirror of
https://gitea.tendokyu.moe/sk1982/actaeon.git
synced 2026-03-21 17:54:19 -05:00
chuni: fix nameplate cutting off to much
This commit is contained in:
parent
4a813f80ca
commit
5043c8dda3
|
|
@ -62,6 +62,8 @@ export async function getUserData(user: UserPayload) {
|
|||
return res;
|
||||
}
|
||||
|
||||
export type ChuniUserData = Awaited<ReturnType<typeof getUserData>>;
|
||||
|
||||
export async function getUserRating(user: UserPayload) {
|
||||
const recent = await db.selectFrom('chuni_profile_recent_rating as recent')
|
||||
.where('user', '=', user.id)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { getUserData } from '@/actions/chuni/profile';
|
||||
import { ChuniUserData } from '@/actions/chuni/profile';
|
||||
import { getImageUrl } from '@/helpers/assets';
|
||||
import { ChuniTrophy } from '@/components/chuni/trophy';
|
||||
import { PickNullable } from '@/types/pick-nullable';
|
||||
import { ChuniRating } from '@/components/chuni/rating';
|
||||
import { formatJst } from '@/helpers/format-jst';
|
||||
|
||||
export type Profile = PickNullable<Awaited<ReturnType<typeof getUserData>>,
|
||||
export type Profile = PickNullable<ChuniUserData,
|
||||
'trophyName' | 'trophyRareType' | 'nameplateImage' | 'nameplateName' | 'teamName' | 'characterId' | 'level' | 'userName' | 'overPowerRate' | 'overPowerPoint' | 'lastPlayDate' | 'playerRating' | 'highestRating'>;
|
||||
|
||||
export type ChuniNameplateProps = {
|
||||
|
|
@ -16,7 +16,7 @@ export type ChuniNameplateProps = {
|
|||
export const ChuniNameplate = ({ className, profile }: ChuniNameplateProps) => {
|
||||
if (!profile) return null;
|
||||
|
||||
return (<div className={`aspect-[576/210] overflow-hidden ${className ?? ''}`}>
|
||||
return (<div className={`aspect-[576/228] overflow-hidden ${className ?? ''}`}>
|
||||
<div className="aspect-[576/228] w-full relative">
|
||||
<div className="absolute z-10 w-[72%] h-[83%] right-[3.25%] top-[2.5%] flex flex-col items-center">
|
||||
<div className="h-[15%] w-[99%]">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user