File tree Expand file tree Collapse file tree 1 file changed +30
-10
lines changed
packages/base/src/panelview/components/story-maps Expand file tree Collapse file tree 1 file changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -175,9 +175,38 @@ function StoryViewerPanel({ model }: IStoryViewerPanelProps) {
175175 >
176176 { `Slide ${ currentIndexDisplayed + 1 } - ${ layerName ? layerName : 'Landmark Name' } ` }
177177 </ h1 >
178+ { /* if guided -> nav buttons */ }
179+ { storyData . storyType === 'guided' && (
180+ < div
181+ style = { {
182+ position : 'absolute' ,
183+ bottom : 0 ,
184+ left : 0 ,
185+ width : '100%' ,
186+ } }
187+ >
188+ < StoryNavBar
189+ onPrev = { handlePrev }
190+ onNext = { handleNext }
191+ hasPrev = { currentIndexDisplayed > 0 }
192+ hasNext = { currentIndexDisplayed < landmarks . length - 1 }
193+ />
194+ </ div >
195+ ) }
178196 </ div >
179197 ) : (
180- < h1 style = { { textAlign : 'center' } } > { storyData . title } </ h1 >
198+ < >
199+ < h1 style = { { textAlign : 'center' } } > { storyData . title } </ h1 >
200+ { /* if guided -> nav buttons */ }
201+ { storyData . storyType === 'guided' && (
202+ < StoryNavBar
203+ onPrev = { handlePrev }
204+ onNext = { handleNext }
205+ hasPrev = { currentIndexDisplayed > 0 }
206+ hasNext = { currentIndexDisplayed < landmarks . length - 1 }
207+ />
208+ ) }
209+ </ >
181210 ) }
182211 < h2 style = { { textAlign : 'center' } } >
183212 { activeSlide ?. content ?. title
@@ -189,15 +218,6 @@ function StoryViewerPanel({ model }: IStoryViewerPanelProps) {
189218 < Markdown > { activeSlide . content . markdown } </ Markdown >
190219 </ div >
191220 ) }
192- { /* if guided -> nav buttons */ }
193- { storyData . storyType === 'guided' && (
194- < StoryNavBar
195- onPrev = { handlePrev }
196- onNext = { handleNext }
197- hasPrev = { currentIndexDisplayed > 0 }
198- hasNext = { currentIndexDisplayed < landmarks . length - 1 }
199- />
200- ) }
201221 </ div >
202222 ) ;
203223}
You can’t perform that action at this time.
0 commit comments