Skip to content

Commit 7c32a8f

Browse files
Added custom styles for GraphiQL Explorer (#15)
1 parent 78b8e8a commit 7c32a8f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ See [GitHub releases](https://github.com/mll-lab/laravel-graphiql/releases).
99

1010
## Unreleased
1111

12+
### Fixed
13+
14+
- Allow scrolling in GraphiQL explorer plugin
15+
16+
### Changed
17+
18+
- Adjusted styling of the GraphiQL eplorer tab title
19+
- Added some margin to the select element within the GraphiQL explorer actions
20+
1221
## v2.0.0
1322

1423
### Added

views/index.blade.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@
1717
#graphiql {
1818
height: 100vh;
1919
}
20+
21+
/* Make the explorer feel more integrated */
22+
.docExplorerWrap {
23+
overflow: auto !important;
24+
width: 100% !important;
25+
height: auto !important;
26+
}
27+
.doc-explorer-title-bar {
28+
font-weight: var(--font-weight-medium);
29+
font-size: var(--font-size-h2);
30+
overflow-x: hidden;
31+
text-overflow: ellipsis;
32+
white-space: nowrap;
33+
}
34+
.doc-explorer-rhs {
35+
display: none;
36+
}
37+
.doc-explorer-contents {
38+
margin: var(--px-16) 0 0;
39+
}
40+
.graphiql-explorer-actions select {
41+
margin-left: var(--px-12);
42+
}
2043
</style>
2144
<script src="{{ \MLL\GraphiQL\DownloadAssetsCommand::reactPath() }}"></script>
2245
<script src="{{ \MLL\GraphiQL\DownloadAssetsCommand::reactDOMPath() }}"></script>

0 commit comments

Comments
 (0)