Status character limit

This commit is contained in:
Natsumi
2021-05-26 00:57:21 +12:00
parent 3a525ebf23
commit 83454cc112
3 changed files with 7 additions and 3 deletions

View File

@@ -35,7 +35,8 @@ button {
background-color: rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0.6);
} }
.el-input__inner { .el-input__inner,
.el-input .el-input__count .el-input__count-inner {
color: #fff; color: #fff;
background-color: #444; background-color: #444;
border: #333; border: #333;

View File

@@ -1240,6 +1240,9 @@ speechSynthesis.getVoices();
if (ref.location !== ref.$location.tag) { if (ref.location !== ref.$location.tag) {
ref.$location = this.parseLocation(ref.location); ref.$location = this.parseLocation(ref.location);
} }
if (ref.statusDescription) {
ref.statusDescription = ref.statusDescription.substring(0, 32);
}
ref.$isVRCPlus = ref.tags.includes('system_supporter'); ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref); this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref); this.applyUserLanguage(ref);

View File

@@ -1470,7 +1470,7 @@ html
div(v-loading="socialStatusDialog.loading") div(v-loading="socialStatusDialog.loading")
el-select(v-model="socialStatusDialog.status" style="dispaly:block") el-select(v-model="socialStatusDialog.status" style="dispaly:block")
el-option(label="Online" value="active"). el-option(label="Online" value="active").
#[i.x-user-status.active] Online #[i.x-user-status.online] Online
el-option(label="Join Me" value="join me"). el-option(label="Join Me" value="join me").
#[i.x-user-status.joinme] Join Me #[i.x-user-status.joinme] Join Me
el-option(label="Ask Me" value="ask me"). el-option(label="Ask Me" value="ask me").
@@ -1479,7 +1479,7 @@ html
#[i.x-user-status.busy] Do Not Disturb #[i.x-user-status.busy] Do Not Disturb
el-option(label="Offline" value="offline"). el-option(label="Offline" value="offline").
#[i.x-user-status.offline] Offline #[i.x-user-status.offline] Offline
el-input(v-model="socialStatusDialog.statusDescription" placeholder="Status" style="dispaly:block;margin-top:10px") el-input(v-model="socialStatusDialog.statusDescription" placeholder="Status" maxlength="32" show-word-limit style="dispaly:block;margin-top:10px")
template(#footer) template(#footer)
el-button(type="primary" size="small" :disabled="socialStatusDialog.loading" @click="saveSocialStatus") Update el-button(type="primary" size="small" :disabled="socialStatusDialog.loading" @click="saveSocialStatus") Update