1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix class and element names

This commit is contained in:
Bill Thornton 2020-09-08 15:43:19 -04:00 committed by vitorsemeano
parent 54d71126d9
commit 97699d513b
5 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ export default function (options) {
} }
const elem = document.createElement('div'); const elem = document.createElement('div');
elem.classList.add('../toast/toast'); elem.classList.add('toast');
elem.innerHTML = options.text; elem.innerHTML = options.text;
document.body.appendChild(elem); document.body.appendChild(elem);

View file

@ -11,7 +11,7 @@ class EmbyButton extends HTMLButtonElement {
return; return;
} }
this.classList.add('../../elements/emby-button/emby-button'); this.classList.add('emby-button');
// TODO replace all instances of element-showfocus with this method // TODO replace all instances of element-showfocus with this method
if (layoutManager.tv) { if (layoutManager.tv) {
// handles all special css for tv layout // handles all special css for tv layout

View file

@ -5,14 +5,14 @@ import 'webcomponents.js/webcomponents-lite';
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype); const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
EmbyButtonPrototype.createdCallback = function () { EmbyButtonPrototype.createdCallback = function () {
this.classList.add('../../elements/emby-button/paper-icon-button-light'); this.classList.add('paper-icon-button-light');
if (layoutManager.tv) { if (layoutManager.tv) {
this.classList.add('show-focus'); this.classList.add('show-focus');
} }
}; };
document.registerElement('../../elements/emby-button/paper-icon-button-light', { document.registerElement('paper-icon-button-light', {
prototype: EmbyButtonPrototype, prototype: EmbyButtonPrototype,
extends: 'button' extends: 'button'
}); });

View file

@ -483,7 +483,7 @@ import 'webcomponents.js/webcomponents-lite';
focusManager.autoFocus(itemsContainer); focusManager.autoFocus(itemsContainer);
} }
document.registerElement('../../elements/emby-itemscontainer/emby-itemscontainer', { document.registerElement('emby-itemscontainer', {
prototype: ItemsContainerPrototype, prototype: ItemsContainerPrototype,
extends: 'div' extends: 'div'
}); });

View file

@ -12,7 +12,7 @@ import './emby-scroller.css';
const ScrollerPrototype = Object.create(HTMLDivElement.prototype); const ScrollerPrototype = Object.create(HTMLDivElement.prototype);
ScrollerPrototype.createdCallback = function () { ScrollerPrototype.createdCallback = function () {
this.classList.add('../../elements/emby-scroller/emby-scroller'); this.classList.add('emby-scroller');
}; };
function initCenterFocus(elem, scrollerInstance) { function initCenterFocus(elem, scrollerInstance) {
@ -193,7 +193,7 @@ import './emby-scroller.css';
} }
}; };
document.registerElement('../../elements/emby-scroller/emby-scroller', { document.registerElement('emby-scroller', {
prototype: ScrollerPrototype, prototype: ScrollerPrototype,
extends: 'div' extends: 'div'
}); });