Skip to content

Commit 358d2a4

Browse files
sidebar tweaks
1 parent 620f88c commit 358d2a4

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

src/DefaultEditor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@ class DefaultEditor extends Component {
7171
return (
7272
<PanelMenuWrapper>
7373
{logo ? logo : null}
74-
<GraphCreatePanel group={_('Graph')} name={_('Create')} />
75-
<GraphSubplotsPanel group={_('Graph')} name={_('Subplots')} />
76-
{this.hasTransforms() && <GraphTransformsPanel group={_('Graph')} name={_('Transform')} />}
74+
<GraphCreatePanel group={_('Structure')} name={_('Traces')} />
75+
<GraphSubplotsPanel group={_('Structure')} name={_('Subplots')} />
76+
{this.hasTransforms() && (
77+
<GraphTransformsPanel group={_('Structure')} name={_('Transforms')} />
78+
)}
7779
<StyleTracesPanel group={_('Style')} name={_('Traces')} />
7880
<StyleLayoutPanel group={_('Style')} name={_('Layout')} />
7981
{this.hasAxes() && <StyleAxesPanel group={_('Style')} name={_('Axes')} />}
8082
<StyleLegendPanel group={_('Style')} name={_('Legend')} />
8183
{this.hasColorbars() && <StyleColorbarsPanel group={_('Style')} name={_('Color Bars')} />}
82-
<StyleNotesPanel group={_('Style')} name={_('Annotate')} />
84+
<StyleNotesPanel group={_('Style')} name={_('Annotation')} />
8385
<StyleShapesPanel group={_('Style')} name={_('Shapes')} />
8486
<StyleImagesPanel group={_('Style')} name={_('Images')} />
8587
{this.hasSliders() && <StyleSlidersPanel group={_('Style')} name={_('Sliders')} />}

src/components/containers/TraceRequiredPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TraceRequiredPanel extends Component {
2222
<PanelEmpty heading={_("Looks like there aren't any traces defined yet.")}>
2323
<p>
2424
{_('Go to the ')}
25-
<a onClick={() => this.context.setPanel('Graph', 'Create')}>{_('Create')}</a>
25+
<a onClick={() => this.context.setPanel('Structure', 'Traces')}>{_('Traces')}</a>
2626
{_(' panel to define traces.')}
2727
</p>
2828
</PanelEmpty>

src/components/fields/AxesCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class UnconnectedAxesCreator extends Component {
152152
{controls}
153153
<Info>
154154
{_('You can style and position your axes in the ')}
155-
<a onClick={() => this.context.setPanel('Graph', 'Subplots')}>{_('Subplots')}</a>
155+
<a onClick={() => this.context.setPanel('Structure', 'Subplots')}>{_('Subplots')}</a>
156156
{_(' panel.')}
157157
</Info>
158158
</PlotlySection>

src/components/fields/SubplotCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class UnconnectedSubplotCreator extends Component {
133133
/>
134134
<Info>
135135
{_('You can style and position your subplots in the ')}
136-
<a onClick={() => this.context.setPanel('Graph', 'Subplots')}>{_('Subplots')}</a>
136+
<a onClick={() => this.context.setPanel('Structure', 'Subplots')}>{_('Subplots')}</a>
137137
{_(' panel.')}
138138
</Info>
139139
</PlotlySection>

src/styles/components/sidebar/_main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
float: left;
1111
border-right: var(--border-default);
1212
flex-grow: 1;
13-
@include scrollbar();
13+
@include scrollbar(0px);
1414

1515
&__group {
1616
background-color: var(--sidebar-group-background-base);
@@ -102,8 +102,8 @@
102102
line-height: var(--font-size-medium);
103103
text-transform: capitalize;
104104
background-color: var(--sidebar-item-background-base);
105-
padding: var(--spacing-half-unit);
106-
padding-left: var(--spacing-base-unit);
105+
padding: 10px;
106+
padding-left: 16px;
107107
padding-right: var(--spacing-quarter-unit);
108108
text-align: left;
109109
border-bottom: var(--border-light);

0 commit comments

Comments
 (0)