[feat] protrait

This commit is contained in:
kwaroran
2023-11-09 14:38:58 +09:00
parent 858818923c
commit 26f51e9615
7 changed files with 32 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ export function createNewGroup(){
return db.characters.length - 1
}
export async function getCharImage(loc:string, type:'plain'|'css'|'contain') {
export async function getCharImage(loc:string, type:'plain'|'css'|'contain'|'lgcss') {
if(!loc || loc === ''){
if(type ==='css'){
return ''
@@ -60,6 +60,11 @@ export async function getCharImage(loc:string, type:'plain'|'css'|'contain') {
else if(type ==='css'){
return `background: url("${filesrc}");background-size: cover;`
}
else if(type ='lgcss'){
return `background: url("${filesrc}");background-size: cover;height: 10.66rem;`
}
else{
return `background: url("${filesrc}");background-size: contain;background-repeat: no-repeat;background-position: center;`
}