Skip to content

Commit

Permalink
perf: Optimize mobile style
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Dec 18, 2024
1 parent b6381dc commit 7881cb8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 48 deletions.
91 changes: 43 additions & 48 deletions src/app/elements/replay/guacamole/guacamole.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,83 +294,78 @@ input[type="range"]:focus::-ms-fill-upper {
min-height: 35px;
padding: 8px;
flex-wrap: wrap;
gap: 8px;
background: rgba(0, 0, 0, 0.8);


button.btn {
min-width: 40px;
height: 40px;
padding: 0;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);

i.fa {
font-size: 16px;
color: #fff;
}

&:active {
background: rgba(255, 255, 255, 0.2);
}
}

// 进度条容器
span[class*="range"] {
order: -1;
width: 100%;
padding: 8px 0;
padding: 4px 0;
}

#position, #duration {
color: #fff;
font-size: 12px;
// 基础控制按钮和时间信息保持在同一行
#play-pause,
#position,
#duration {
margin: 4px;
}

#user, #asset, #system_user, #date_start {
// 资产信息换行显示
#user,
#asset,
#system_user,
#date_start,
#download {
width: 100%;
padding: 4px 0 !important;
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

#download {
padding: 4px 0 !important;

a {
color: #5AF;
text-decoration: none;
}
}
}

#display {
height: calc(100vh - 180px);
height: auto;
min-height: 200px;
padding: 0;

// 隐藏左侧命令列表
as-split-area[order="0"] {
display: none;
}

// 视频区域自适应
as-split-area[order="1"] {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
}

#screen {
width: 100%;
height: calc(100vh - 200px); // 减去控制栏和其他元素的高度
display: flex;
align-items: center;
justify-content: center;

// 确保视频内容居中显示
> * {
max-width: 100%;
max-height: 100%;
margin: auto;
}
}

// 优化 seeking 提示
.seek-notification {
button#cancel-seek {
padding: 8px 16px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border: none;
font-size: 14px;

&:active {
background: rgba(255, 255, 255, 0.2);
}
display: flex;
align-items: center;
justify-content: center;

p {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ export class ElementACLDialogComponent implements OnInit {
const checkMethod = this.connectionToken.from_ticket_info.check_ticket_api.method.toLowerCase();
const checkURL = this.connectionToken.from_ticket_info.check_ticket_api.url;
const ticketAssignees = this.connectionToken.from_ticket_info.assignees.join(', ');

// @ts-ignore
this.timerCheckTicket = setInterval(() => {
this._http[checkMethod](checkURL).subscribe(
async ticket => {
Expand Down

0 comments on commit 7881cb8

Please sign in to comment.