Add: (Optional) tag to editor in UI

horizontal_scroll_2
Juraj Nyíri 3 years ago
parent 8a38863a7f
commit 427c392d31

@ -20475,42 +20475,43 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
styleTitle.style.marginBottom = '0px';
styleTitle.style.marginTop = '20px';
this.plexValidSection.appendChild(styleTitle);
this.minWidth.label = 'Minimum width of the card';
this.minWidth.label = 'Minimum width of the card (Optional)';
this.minWidth.value = this.config.minWidth;
this.minWidth.type = 'number';
this.minWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minWidth);
this.minExpandedWidth.label = 'Expanded width of the card';
this.minExpandedWidth.label = 'Expanded width of the card (Optional)';
this.minExpandedWidth.value = this.config.minExpandedWidth;
this.minExpandedWidth.type = 'number';
this.minExpandedWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minExpandedWidth);
this.minExpandedHeight.label = 'Expanded height of the card';
this.minExpandedHeight.label = 'Expanded height of the card (Optional)';
this.minExpandedHeight.value = this.config.minExpandedHeight;
this.minExpandedHeight.type = 'number';
this.minExpandedHeight.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minExpandedHeight);
this.minEpisodeWidth.label = 'Minimum width of the episode card';
this.minEpisodeWidth.label = 'Minimum width of the episode card (Optional)';
this.minEpisodeWidth.value = this.config.minEpisodeWidth;
this.minEpisodeWidth.type = 'number';
this.minEpisodeWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minEpisodeWidth);
this.fontSize1.label = 'Font size used in titles under cards';
this.fontSize1.label = 'Font size used in titles under cards (Optional)';
this.fontSize1.value = this.config.fontSize1;
this.fontSize1.type = 'number';
this.fontSize1.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize1);
this.fontSize2.label = 'Font size used in sub-titles under cards';
this.fontSize2.label = 'Font size used in sub-titles under cards (Optional)';
this.fontSize2.value = this.config.fontSize2;
this.fontSize2.type = 'number';
this.fontSize2.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize2);
this.fontSize3.label = 'Font size used in title of the opened content';
this.fontSize3.label = 'Font size used in title of the opened content (Optional)';
this.fontSize3.value = this.config.fontSize3;
this.fontSize3.type = 'number';
this.fontSize3.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize3);
this.fontSize4.label = 'Font size used in sub-titles, to-view count and description of the opened content';
this.fontSize4.label =
'Font size used in sub-titles, to-view count and description of the opened content (Optional)';
this.fontSize4.value = this.config.fontSize4;
this.fontSize4.type = 'number';
this.fontSize4.addEventListener('change', this.valueUpdated);

@ -610,49 +610,50 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
styleTitle.style.marginTop = '20px';
this.plexValidSection.appendChild(styleTitle);
this.minWidth.label = 'Minimum width of the card';
this.minWidth.label = 'Minimum width of the card (Optional)';
this.minWidth.value = this.config.minWidth;
this.minWidth.type = 'number';
this.minWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minWidth);
this.minExpandedWidth.label = 'Expanded width of the card';
this.minExpandedWidth.label = 'Expanded width of the card (Optional)';
this.minExpandedWidth.value = this.config.minExpandedWidth;
this.minExpandedWidth.type = 'number';
this.minExpandedWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minExpandedWidth);
this.minExpandedHeight.label = 'Expanded height of the card';
this.minExpandedHeight.label = 'Expanded height of the card (Optional)';
this.minExpandedHeight.value = this.config.minExpandedHeight;
this.minExpandedHeight.type = 'number';
this.minExpandedHeight.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minExpandedHeight);
this.minEpisodeWidth.label = 'Minimum width of the episode card';
this.minEpisodeWidth.label = 'Minimum width of the episode card (Optional)';
this.minEpisodeWidth.value = this.config.minEpisodeWidth;
this.minEpisodeWidth.type = 'number';
this.minEpisodeWidth.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.minEpisodeWidth);
this.fontSize1.label = 'Font size used in titles under cards';
this.fontSize1.label = 'Font size used in titles under cards (Optional)';
this.fontSize1.value = this.config.fontSize1;
this.fontSize1.type = 'number';
this.fontSize1.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize1);
this.fontSize2.label = 'Font size used in sub-titles under cards';
this.fontSize2.label = 'Font size used in sub-titles under cards (Optional)';
this.fontSize2.value = this.config.fontSize2;
this.fontSize2.type = 'number';
this.fontSize2.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize2);
this.fontSize3.label = 'Font size used in title of the opened content';
this.fontSize3.label = 'Font size used in title of the opened content (Optional)';
this.fontSize3.value = this.config.fontSize3;
this.fontSize3.type = 'number';
this.fontSize3.addEventListener('change', this.valueUpdated);
this.plexValidSection.appendChild(this.fontSize3);
this.fontSize4.label = 'Font size used in sub-titles, to-view count and description of the opened content';
this.fontSize4.label =
'Font size used in sub-titles, to-view count and description of the opened content (Optional)';
this.fontSize4.value = this.config.fontSize4;
this.fontSize4.type = 'number';
this.fontSize4.addEventListener('change', this.valueUpdated);

Loading…
Cancel
Save