Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Adjust the appearance of SQL Workbench UI (#38)
Browse files Browse the repository at this point in the history
* Removed redundant headers and changed the header to "SQL Workbench"
* Added default queries in initial interface
* Adjusted components in UI
  • Loading branch information
chloe-zh authored Mar 12, 2020
1 parent 5beb5f8 commit 7c5a03b
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 179 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export default function (kibana) {
name: PLUGIN_NAME,
uiExports: {
app: {
title: 'SQL Console',
description: 'SQL Console',
title: 'SQL Workbench',
description: 'SQL Workbench',
main: 'plugins/' + PLUGIN_NAME + '/app',
icon:'plugins/' + PLUGIN_NAME + '/icons/sql.svg',
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sql-kibana",
"version": "1.4.0.0",
"description": "SQL Console",
"description": "SQL Workbench",
"main": "index.js",
"license": "Apache-2.0",
"homepage": "https://github.com/opendistro-for-elasticsearch/sql-kibana-plugin",
Expand Down
29 changes: 12 additions & 17 deletions public/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@
}

.sql-console-query-editor {
height: 500px;
max-height: 500px;

height: 430px;
max-height: 430px;
.container-panel {
border-radius: 0px;
box-shadow: none;
}
.container-panel-header {
font-weight: 450px;
padding: $euiSize $euiSize;
}
.sql-query-panel {
border-radius: 0px;
border-width: 1px;
Expand All @@ -63,7 +58,7 @@
}
.resize-panel {
resize: vertical;
overflow: auto;
overflow: auto;
cursor: row-resize;
}
.sql-editor-link:visited {
Expand All @@ -78,7 +73,7 @@
scroll-behavior: smooth;
.sql-console-results-container {
overflow: auto;
}
}
.query-result-container {
border: solid 1.5px #d9d9d9;
border-radius: 0px;
Expand All @@ -94,15 +89,15 @@
}
.table-header {
/*border-top: solid 1px #d9d9d9;*/
background-color: #d9d9d9;
background-color: #d9d9d9;
}
.sideNav-table {
.sideNav-table {
border: solid 1px rgb(217, 217, 217);
border-collapse: separate;
}
.search-panel {
display: inline-flex;
width:100%;
display: inline-flex;
width:100%;
padding:20px;
}
.search-bar {
Expand Down Expand Up @@ -134,7 +129,7 @@

.toggleContainer {
margin: 20px;
}
}
}

.expanded-row {
Expand Down Expand Up @@ -166,7 +161,7 @@

/********* EuiTable overrides ***********/
.euiTableCellContent {
display: inline-block;
display: inline-block;
width: 100%;
}

Expand Down Expand Up @@ -225,7 +220,7 @@
}

/* Remove the horizontal tick from the root of the sideNav */
&.euiSideNavItem--root > .euiSideNavItemButton {
&.euiSideNavItem--root > .euiSideNavItemButton {
&:after {
background: none;
}
Expand Down Expand Up @@ -269,4 +264,4 @@

.euiSideNavItem--branch > .euiSideNavItemButton {
padding-left: 10px;
}
}
3 changes: 0 additions & 3 deletions public/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import { EuiHorizontalRule } from '@elastic/eui';
const Header = () => {
return (
<div>
<div className="sql-console-page-header">
SQL console
</div>
<EuiHorizontalRule margin="none" />
</div>
);
Expand Down
5 changes: 0 additions & 5 deletions public/components/Header/__snapshots__/Header.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
exports[`<Header /> spec renders the component 1`] = `
<div>
<div>
<div
class="sql-console-page-header"
>
SQL console
</div>
<hr
class="euiHorizontalRule euiHorizontalRule--full"
/>
Expand Down
Loading

0 comments on commit 7c5a03b

Please sign in to comment.