mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-31 00:48:41 +03:00
fix some bug
This commit is contained in:
@@ -92,8 +92,8 @@ body
|
||||
|
||||
#Login1
|
||||
{
|
||||
height:36px;
|
||||
line-height: 36px;
|
||||
height:48px;
|
||||
line-height: 48px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
user-select: none;
|
||||
@@ -132,7 +132,7 @@ body
|
||||
|
||||
#QDTIcon
|
||||
{
|
||||
height:36px;
|
||||
height:48px;
|
||||
}
|
||||
|
||||
#Login2
|
||||
@@ -147,6 +147,8 @@ body
|
||||
#UserAvatarIcon
|
||||
{
|
||||
height: 85px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#UserName
|
||||
|
||||
@@ -138,13 +138,13 @@ function SetLoginInfo( strAvatar, strName )
|
||||
|
||||
$("#UserName").text(strName);
|
||||
|
||||
let OriginAvatar=$("#Login2 #UserAvatarIconLogin").prop("src");
|
||||
let OriginAvatar=$("#Login2 #UserAvatarIcon").prop("src");
|
||||
if(strAvatar!=OriginAvatar && strAvatar.length != 0)
|
||||
{
|
||||
$("#Login2 #UserAvatarIconLogin").prop("src",strAvatar);
|
||||
$("#Login2 #UserAvatarIcon").prop("src",strAvatar);
|
||||
}
|
||||
else
|
||||
$("#Login2 #UserAvatarIconLogin").prop("src", "../image/userdark.png");
|
||||
$("#Login2 #UserAvatarIcon").prop("src", "../image/userdark.png");
|
||||
|
||||
$("#Login2").show();
|
||||
$("#Login2").css("display","flex");
|
||||
@@ -152,7 +152,7 @@ function SetLoginInfo( strAvatar, strName )
|
||||
|
||||
function SetUserOffline()
|
||||
{
|
||||
$("#UserAvatarIconLogin").prop("src","../image/logo2.png");
|
||||
$("#UserAvatarIcon").prop("src","../image/logo2.png");
|
||||
$("#UserName").text('');
|
||||
$("#Login2").hide();
|
||||
|
||||
|
||||
@@ -21,58 +21,14 @@
|
||||
<body class="ZScrol" onLoad="OnInit()">
|
||||
<div id="LeftBoard">
|
||||
<div id="LoginArea">
|
||||
<!-- //B -->
|
||||
<div id="Login1">
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#Icon1 {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#UserAvatarIcon {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
#UserAvatarIconLogin {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#LoginBtn {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
line-height: 1;
|
||||
}
|
||||
</style>
|
||||
<div class="container" onClick="OnLoginOrRegister()">
|
||||
<div id="Icon1">
|
||||
<img id="UserAvatarIcon" src="../image/logo2.png" alt="Logo" />
|
||||
</div>
|
||||
<div id="LoginBtn" class="TextS1">
|
||||
<span class="trans" tid="t26">login</span>/<span class="trans" tid="t27">register</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="Login1" onClick="OnLoginOrRegister()">
|
||||
<div id="Icon1"><img id="QDTIcon" src="../image/logo2.png" /></div>
|
||||
<div id="LoginBtn" class="TextS1" style="font-weight: 700;"><span class="trans" tid="t26">login</span>/<span class="trans" tid="t27">register</span></div>
|
||||
</div>
|
||||
|
||||
<div id="Login2">
|
||||
<div>
|
||||
<img id="UserAvatarIconLogin" src="../image/userdark.png" onerror="this.onerror=null;this.src='image/userdark.png';" />
|
||||
<img id="UserAvatarIcon" src="../image/userdark.png" onerror="this.onerror=null;this.src='image/userdark.png';" />
|
||||
</div>
|
||||
<div id="UserName" class="TextS1"></div>
|
||||
<div id="LogoutBtn" class="Btn trans" tid="t50" onClick="OnLogOut()">log out</div>
|
||||
@@ -87,7 +43,7 @@
|
||||
<div id="BtnArea">
|
||||
<div menu="home" class="BtnItem BtnItemSelected" onClick="GotoMenu('home')">
|
||||
<div class="BtnIcon "><img class="LeftIcon" src="img/left_home.svg" /></div>
|
||||
<div class="BtnText trans" tid="t114">Home</div>
|
||||
<div class="BtnText trans" tid="t114">Home</div>
|
||||
</div>
|
||||
<div menu="recent" class="BtnItem" onClick="GotoMenu('recent')">
|
||||
<div class="BtnIcon "><img class="LeftIcon" src="img/left_recent.svg" /></div>
|
||||
@@ -117,9 +73,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div id="HideBtn" onClick="ChangeLeftWidth()"></div> -->
|
||||
|
||||
<div id="HideBtn" onClick="ChangeLeftWidth()"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user