Fixing chat mode canceling flex display
This commit is contained in:
parent
1509777945
commit
05ca8c813e
@ -108,13 +108,13 @@ class LayoutManager {
|
|||||||
this.mode = layoutMode;
|
this.mode = layoutMode;
|
||||||
|
|
||||||
if (layoutMode === LayoutMode.Presentation) {
|
if (layoutMode === LayoutMode.Presentation) {
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'block';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'flex';
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'block';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'flex';
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'none';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'none';
|
||||||
} else {
|
} else {
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'none';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'none';
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'none';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'none';
|
||||||
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'block';
|
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'flex';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let div of this.importantDivs.values()) {
|
for (let div of this.importantDivs.values()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user