Skip to content

Commit d38ba8b

Browse files
committed
see ess ess
1 parent 2c228dd commit d38ba8b

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

packages/base/src/panelview/components/story-maps/StoryViewerPanel.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function StoryViewerPanel({ model, togglePreview }: IStoryViewerPanelProps) {
143143
}
144144

145145
return (
146-
<div style={{ overflow: 'hidden' }}>
146+
<div className="jgis-story-viewer-panel" style={{ overflow: 'hidden' }}>
147147
{/* Image container with title overlay */}
148148
{activeSlide?.content?.image ? (
149149
<div style={{ position: 'relative', width: '100%', height: '30%' }}>
@@ -164,8 +164,12 @@ function StoryViewerPanel({ model, togglePreview }: IStoryViewerPanelProps) {
164164
top: 0,
165165
left: 0,
166166
width: '100%',
167-
margin: 0,
168-
padding: '1rem',
167+
marginTop: 0,
168+
marginBottom: 0,
169+
marginLeft: 'auto',
170+
marginRight: 'auto',
171+
paddingTop: '1rem',
172+
paddingBottom: '1rem',
169173
color: 'white',
170174
textShadow: '2px 2px 4px rgba(0, 0, 0, 0.8)',
171175
backgroundColor: 'rgba(0, 0, 0, 0.3)',
@@ -189,7 +193,7 @@ function StoryViewerPanel({ model, togglePreview }: IStoryViewerPanelProps) {
189193
: 'Slide Title'}
190194
</h3> */}
191195
{activeSlide?.content?.markdown && (
192-
<div className="jgis-story-panel-content" style={{ paddingLeft: 32 }}>
196+
<div className="jgis-story-viewer-content" style={{ paddingLeft: 16 }}>
193197
<Markdown>{activeSlide.content.markdown}</Markdown>
194198
</div>
195199
)}

packages/base/src/panelview/rightpanel.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ export const RightPanel: React.FC<IRightPanelProps> = props => {
136136
</TabsContent>
137137
)}
138138

139-
<TabsContent value="storyPanel" className="jgis-panel-tab-content">
139+
<TabsContent
140+
value="storyPanel"
141+
className="jgis-panel-tab-content"
142+
style={{ paddingTop: 0 }}
143+
>
140144
{settings.storyMapPresentation || !displayEditor ? (
141145
<StoryViewerPanel
142146
model={props.model}

packages/base/style/shared/tabs.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.jgis-panel-tabs {
22
display: flex;
33
flex-direction: column;
4-
gap: 1rem;
4+
/* gap: 1rem; */
55
justify-content: center;
66
align-items: center;
77
background-color: var(--jp-layout-color0);
@@ -20,7 +20,8 @@
2020
gap: 1rem;
2121
width: 100%;
2222
font-size: 9px;
23-
border-radius: 5px;
23+
border-top-left-radius: 5px;
24+
border-top-right-radius: 5px;
2425
overflow-x: scroll;
2526
}
2627

@@ -62,6 +63,7 @@
6263
width: 100%;
6364
overflow-y: scroll;
6465
max-height: 480px;
66+
padding-top: 1rem;
6567
}
6668

6769
.jgis-tabs-content:focus-visible {

packages/base/style/storyPanel.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
.jgis-story-panel-content p,
2-
.jgis-story-panel-content span,
3-
.jgis-story-panel-content li {
1+
.jgis-story-viewer-panel * {
2+
box-sizing: border-box;
3+
}
4+
5+
.jgis-story-viewer-content p,
6+
.jgis-story-viewer-content span,
7+
.jgis-story-viewer-content li {
48
font-size: var(--jp-ui-font-size2);
59
}
610

7-
.jgis-story-panel-content > ul {
11+
.jgis-story-viewer-content > ul {
812
padding-left: 1rem;
913
}

packages/base/style/tabPanel.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.jgis-panel-tab-content {
2-
border-radius: 5px;
3-
font-size: 10px;
2+
font-size: var(--jp-ui-font-size0);
43
padding-bottom: 50px;
54
}
65

0 commit comments

Comments
 (0)