Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 0c50539

Browse files
feat: improve title display in slide navigation picker
1 parent 4040511 commit 0c50539

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

studio/src/app/modals/editor/app-slide-navigate/app-slide-navigate.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ export class AppSlideNavigate {
4646
if (slide.tagName && slide.tagName.toLowerCase().indexOf('deckgo-slide') > -1) {
4747
const title: HTMLElement = slide.querySelector('[slot="title"]');
4848

49-
if (title) {
49+
if (title && title.textContent !== '') {
5050
results.push(title.textContent);
5151
} else {
52-
const start: HTMLElement = slide.querySelector('[slot="start"]');
52+
const start: HTMLElement = slide.querySelector('[slot="start"],[slot="header"]');
5353

54-
if (start) {
54+
if (start && start.textContent !== '') {
5555
results.push(start.textContent);
5656
} else {
57-
const end: HTMLElement = slide.querySelector('[slot="end"]');
57+
const end: HTMLElement = slide.querySelector('[slot="end"],[slot="footer"]');
5858

59-
if (end) {
59+
if (end && end.textContent !== '') {
6060
results.push(end.textContent);
6161
} else {
6262
results.push('');

0 commit comments

Comments
 (0)