aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-16 16:41:34 +0100
committerChocobozzz <me@florianbigard.com>2023-02-16 16:41:34 +0100
commitd270d6a0426e4f33dc8ffbf7d1dde991ccaad921 (patch)
tree32973861fbb8b741512663c232e8694a53ad4cbc /client/src/assets/player/shared
parent1f26c0b846ce22877c432012d107bd72869bc562 (diff)
downloadPeerTube-d270d6a0426e4f33dc8ffbf7d1dde991ccaad921.tar.gz
PeerTube-d270d6a0426e4f33dc8ffbf7d1dde991ccaad921.tar.zst
PeerTube-d270d6a0426e4f33dc8ffbf7d1dde991ccaad921.zip
Fix lint
Diffstat (limited to 'client/src/assets/player/shared')
-rw-r--r--client/src/assets/player/shared/settings/settings-menu-button.ts5
-rw-r--r--client/src/assets/player/shared/settings/settings-menu-item.ts4
2 files changed, 3 insertions, 6 deletions
diff --git a/client/src/assets/player/shared/settings/settings-menu-button.ts b/client/src/assets/player/shared/settings/settings-menu-button.ts
index 64866aab2..4cf29866b 100644
--- a/client/src/assets/player/shared/settings/settings-menu-button.ts
+++ b/client/src/assets/player/shared/settings/settings-menu-button.ts
@@ -175,10 +175,7 @@ class SettingsButton extends Button {
175 const el = element.el() as HTMLElement 175 const el = element.el() as HTMLElement
176 176
177 width = el.offsetWidth 177 width = el.offsetWidth
178 height = el.offsetHeight; 178 height = el.offsetHeight
179
180 (element as any).width = width;
181 (element as any).height = height
182 } else { 179 } else {
183 width = element.offsetWidth 180 width = element.offsetWidth
184 height = element.offsetHeight 181 height = element.offsetHeight
diff --git a/client/src/assets/player/shared/settings/settings-menu-item.ts b/client/src/assets/player/shared/settings/settings-menu-item.ts
index 07ff0f2a8..288e3b233 100644
--- a/client/src/assets/player/shared/settings/settings-menu-item.ts
+++ b/client/src/assets/player/shared/settings/settings-menu-item.ts
@@ -238,8 +238,8 @@ class SettingsMenuItem extends MenuItem {
238 mainMenuEl.style.opacity = '0' 238 mainMenuEl.style.opacity = '0'
239 239
240 // back button will always take you to main menu, so set dialog sizes 240 // back button will always take you to main menu, so set dialog sizes
241 const mainMenuAny = this.mainMenu as any 241 const mainMenuAny = this.mainMenu
242 this.settingsButton.setDialogSize([ mainMenuAny.width, mainMenuAny.height ]) 242 this.settingsButton.setDialogSize([ mainMenuAny.width() as number, mainMenuAny.height() as number ])
243 243
244 // animation not triggered without timeout (some async stuff ?!?) 244 // animation not triggered without timeout (some async stuff ?!?)
245 setTimeout(() => { 245 setTimeout(() => {