Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-10-11 23:17:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7031da7a69c11b73df7726466f740fbe09307d0f
7031da7a
1 parent
4c4d8195
feat:优化视频详情页评论弹出
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentListDialog.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentListDialog.ets
View file @
7031da7
...
...
@@ -20,9 +20,16 @@ export struct CommentListDialogView {
onClose?: () => void
onHeightDidChange?: Callback<number>
@StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm';
@State isPad:boolean = this.currentBreakpoint == "md" || this.currentBreakpoint == "lg"?true:false
aboutToAppear(): void {
if (this.isPad) {
this.maxHeight = this.windowHeight * 0.6
}else {
this.maxHeight = this.windowHeight - this.windowWidth * 9 / 16
}
}
build() {
Row() {
...
...
Please
register
or
login
to post a comment