mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-04 14:03:27 +00:00
Compare commits
1 Commits
v5.10.1
...
webview-gl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7460693b6 |
@@ -13,6 +13,9 @@ body {
|
|||||||
#content {
|
#content {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
background: #fff url(../img/ic_loading.gif) no-repeat;
|
background: #fff url(../img/ic_loading.gif) no-repeat;
|
||||||
background-size: 60px 60px;
|
background-size: 60px 60px;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class WebView extends BaseComponent {
|
|||||||
this.zoomFactor = 1.0;
|
this.zoomFactor = 1.0;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.badgeCount = 0;
|
this.badgeCount = 0;
|
||||||
|
this.loadingIndicator = document.getElementById('content');
|
||||||
}
|
}
|
||||||
|
|
||||||
template() {
|
template() {
|
||||||
@@ -92,6 +93,8 @@ class WebView extends BaseComponent {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.$el.addEventListener('dom-ready', () => {
|
this.$el.addEventListener('dom-ready', () => {
|
||||||
|
// const loadingIndicator = document.getElementById('content');
|
||||||
|
this.loadingIndicator.classList.remove('loading');
|
||||||
if (this.props.role === 'server') {
|
if (this.props.role === 'server') {
|
||||||
this.$el.classList.add('onload');
|
this.$el.classList.add('onload');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content" class="loading">
|
||||||
<div class="popup">
|
<div class="popup">
|
||||||
<span class="popuptext hidden" id="fullscreen-popup"></span>
|
<span class="popuptext hidden" id="fullscreen-popup"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user