Skip to content

Commit 4bedd6b

Browse files
authored
Fix incorrect initial set of Explorer width (#44)
1 parent 5045368 commit 4bedd6b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ jobs:
4141
with:
4242
auth: ${{ secrets.ROCKS_AUTH }}
4343
files: |
44-
graphqlide-${{ env.TAG }}-1.rockspec
45-
graphqlide-${{ env.TAG }}-1.all.rock
44+
graphqlide-$TAG-1.rockspec
45+
graphqlide-$TAG-1.all.rock

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
66
- `allow defaults for mandatory arguments`
7+
- `fix incorrect setting explorer width on first module load`
78

89
## 0.0.18
910

src/GraphQLIDE.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ class GraphQLIDE extends Component<any, GraphQLIDEState> {
440440
explorerIsOpen={this.state.explorerIsOpen}
441441
onToggleExplorer={this._handleToggleExplorer}
442442
storage={this._storage}
443+
explorerWidth={300}
444+
title={'Explorer'}
443445
/>
444446
<GraphiQL
445447
ref={ref => (this._graphiql = ref)}

src/graphiql-explorer/GraphiQLExplorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3344,7 +3344,7 @@ class GraphiQLExplorer extends React.PureComponent<GraphiQLExplorerProps, Graphi
33443344
};
33453345

33463346
state = {
3347-
explorerWidth : Number(this.props.storage.getItem('graphiql:explorerWidth')) ?? this.props.explorerWidth,
3347+
explorerWidth : Number(this.props.storage.getItem('graphiql:explorerWidth') ?? this.props.explorerWidth),
33483348
};
33493349

33503350
explorerContainer : Maybe<HTMLDivElement>;

0 commit comments

Comments
 (0)