Skip to content

Commit a34891b

Browse files
authored
PXP-11072 fix graphiql styling (#1402)
* disable graphiql styling * disable more * start over on css * update css * fix typo * fix height and color * fix css * fix local css load * update path * remove unneeded css
1 parent 191a353 commit a34891b

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

boot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
linkNode.rel = 'stylesheet';
2929
document.body.appendChild(linkNode);
3030
// create local theme override node in body
31-
const localThemeOverridesSrc = (basename && basename !== '/') ? `https://localhost:9443${basename}/src/css/themeoverrides.css?_=${cssVersion}` : `https://localhost:9443/src/css/themeoverrides.css?_=${cssVersion}`;
31+
const localThemeOverridesSrc = (basename && basename !== '/') ? `https://localhost:9443${basename}/src/css/themeoverrides.css` : 'https://localhost:9443/src/css/themeoverrides.css';
3232
linkNode = document.createElement('link');
3333
linkNode.href = localThemeOverridesSrc;
3434
linkNode.type = 'text/css';

src/css/graphiql.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
-webkit-box-direction: normal;
224224
-ms-flex-direction: column;
225225
flex-direction: column;
226-
height: 29px;
226+
height: 200px;
227227
position: relative;
228228
}
229229

@@ -242,6 +242,16 @@
242242
-moz-user-select: none;
243243
-ms-user-select: none;
244244
user-select: none;
245+
display: flex;
246+
cursor: row-resize;
247+
}
248+
249+
.graphiql-container .variable-editor-title-text{
250+
cursor: pointer;
251+
}
252+
253+
.graphiql-container .variable-editor-title-text.active {
254+
color: black;
245255
}
246256

247257
.graphiql-container .codemirrorWrap {

src/localconf.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ function buildConfig(opts) {
111111
const logoutInactiveUsers = !(process.env.LOGOUT_INACTIVE_USERS === 'false');
112112
const useIndexdAuthz = !(process.env.USE_INDEXD_AUTHZ === 'false');
113113
const workspaceTimeoutInMinutes = process.env.WORKSPACE_TIMEOUT_IN_MINUTES || 480;
114-
const graphqlSchemaUrl = `${hostname}${(basename && basename !== '/') ? basename : ''}/data/schema.json`;
114+
const cleanBasename = basename.replace(/^\/+/g, '').replace(/(dev.html$)/, '').replace(/\/$/, '');
115+
const graphqlSchemaUrl = `${hostname}${cleanBasename}/data/schema.json`;
115116
const workspaceUrl = typeof workspaceURL === 'undefined' ? '/lw-workspace/' : ensureTrailingSlash(workspaceURL);
116117
const workspaceErrorUrl = '/no-workspace-access/';
117118
const Error403Url = '/403error';

0 commit comments

Comments
 (0)