Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(whiteboard): support multi window #896

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

Cheerego7
Copy link
Member

No description provided.

Copy link
Member

@crimx crimx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it pass the spell check CI

left: 76px;
z-index: 3;
bottom: 8px;
&.is-disabled {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&.is-disabled {
&.invisible {

border-radius: 2px;
&:hover {
background: rgba(33, 35, 36, 0.1);
&.is-disabled {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&.is-disabled {
&.invisible {

<div className="redo-undo-box">
<div
className={classNames("redo-undo-box", {
"is-disabled": whiteboardStore.isWindowMaximization,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"is-disabled": whiteboardStore.isWindowMaximization,
"invisible": whiteboardStore.isWindowMaximization,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use is- prefix to indicate state classnames.

</div>
<div
className={classNames("page-controller-box", {
"is-disabled": whiteboardStore.isWindowMaximization,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"is-disabled": whiteboardStore.isWindowMaximization,
"invisible": whiteboardStore.isWindowMaximization,

desktop/renderer-app/src/components/Whiteboard.tsx Outdated Show resolved Hide resolved
desktop/renderer-app/src/stores/WhiteboardStore.ts Outdated Show resolved Hide resolved
desktop/renderer-app/src/stores/WhiteboardStore.ts Outdated Show resolved Hide resolved
Comment on lines 362 to 366
if (this.room && this.windowManager) {
this.preloadPPTResource.cancel();
this.windowManager.destroy();
this.room.callbacks.off();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (this.room && this.windowManager) {
this.preloadPPTResource.cancel();
this.windowManager.destroy();
this.room.callbacks.off();
}
this.preloadPPTResource.cancel();
this.windowManager?.destroy();
this.room?.callbacks.off();

Comment on lines +375 to +374
private scenesPathName = (scenePath: string): string => {
const cells = scenePath.split("/");
const popCell = cells.pop();
if (popCell === "") {
cells.pop();
}
return cells.join("/");
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? Can you give me an example of what the value of scenePath looks like?

left: 76px;
z-index: 3;
bottom: 8px;
&.is-disabled {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problem as above

@BlackHole1 BlackHole1 changed the base branch from main to dev August 26, 2021 12:40
@BlackHole1 BlackHole1 merged commit 55ad9c0 into netless-io:dev Aug 26, 2021
Cheerego7 added a commit that referenced this pull request Sep 3, 2021
Cheerego7 added a commit to Cheerego7/flat that referenced this pull request Sep 3, 2021
Cheerego7 added a commit to Cheerego7/flat that referenced this pull request Sep 3, 2021
Cheerego7 added a commit that referenced this pull request Sep 3, 2021
BlackHole1 added a commit that referenced this pull request Sep 3, 2021
* feat(whiteboard): support multi window (#896)

* refactor(desktop): set aspect ratio to 16/9 (#899)

* feat(whiteboard): add containerSizeRatio config in windowManager (#900)

* chore(ci): add dev branch to check action (#901)

* fix(whiteboard): adjust location of collectorContainer element (#903)

* refactor(whiteboard): remove vision control (#907)

* refactor(whiteboard): remove Vision control

* fix(ci): build web and renderer failed

* chore(library): upgrade window-manager (#919)

* fix(web): should close local tracks on exiting room (#920)

* refactor(whiteboard): adjust class room style of whiteboard (#921)

* refactor(whiteboard): adjust class room style of whiteboard

* fix(type): type fail

Co-authored-by: Cheerego7 <48879533+Cheerego7@users.noreply.github.com>
Co-authored-by: Leo <1826234293@qq.com>
Co-authored-by: hyrious <hyrious@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants