Skip to content

Commit 5f4826a

Browse files
committed
Miscelanious style fixes, dropdowns always open downward now. markdown is now suggested in settings window when type is markdown
1 parent d5a2add commit 5f4826a

File tree

6 files changed

+146
-70
lines changed

6 files changed

+146
-70
lines changed

public/style.css

Lines changed: 74 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
3-
body{
2+
body {
43
background-color: rgb(206, 206, 206);
54
}
5+
66
.log-snip {
77
height: 200px;
88
overflow: scroll;
@@ -16,21 +16,29 @@ body{
1616
transform: translateY(-18px) scale(0.8);
1717
}
1818

19+
.select-dropdown {
20+
top: 0px !important;
21+
}
22+
1923
.log {
2024
background-color: lightgrey;
2125
font-size: 12px;
2226
}
23-
.preloader-wrapper{
24-
width:25px;
25-
height:25px;
27+
28+
.preloader-wrapper {
29+
width: 25px;
30+
height: 25px;
2631
}
32+
2733
code {
2834
background-color: #eee;
2935
display: inline-block;
3036
}
37+
3138
.autocomplete-content {
3239
top: 50px !important;
3340
}
41+
3442
.card-content .autocomplete-div ul:not(.browser-default) > li {
3543
list-style-type: none;
3644
margin-left: 0px;
@@ -41,16 +49,19 @@ code {
4149
background-color: #eee;
4250

4351
}
52+
4453
.card-content ul:not(.browser-default) > li {
4554
list-style-type: disc;
4655
margin-left: 40px;
4756
padding-left: 0px;
4857
}
49-
.badge-strip{
58+
59+
.badge-strip {
5060
position: absolute;
5161
right: 0px;
5262
top: 0px;
5363
}
64+
5465
#root {
5566
background-color: #efefef;
5667
}
@@ -61,42 +72,50 @@ code {
6172
margin-top: 150px;
6273
margin-bottom: 150px;
6374
}
64-
.btn-center-align :hover {
75+
76+
.btn-center-align :hover {
6577
opacity: 0.7;
6678
}
6779

6880
.card {
6981
padding-bottom: 55px;
7082
}
83+
7184
.card-content {
7285
padding-bottom: 0px !important;
7386
}
87+
7488
.card-content td {
7589
padding: 10px 4px;
7690
}
7791

7892
.card-content th {
7993
padding: 4px 4px;
8094
}
95+
8196
.card-content th:not(:first-child) {
8297

83-
min-width:60px;
98+
min-width: 60px;
8499
}
85100

86101
.card-action {
87102
max-height: 200px;
88103
}
89-
.card-action .pagination a{
104+
105+
.card-action .pagination a {
90106
color: #000 !important;
91107
margin-right: 0px !important;
92108
}
93-
.card-action .pagination li{
109+
110+
.card-action .pagination li {
94111
width: 40px;
95112
}
113+
96114
.card-content img {
97115
width: 100%;
98116
}
99-
.card-action .pagination{
117+
118+
.card-action .pagination {
100119
margin-top: 0 !important;
101120
margin-bottom: 0 !important;
102121
width: 290px;
@@ -105,17 +124,19 @@ code {
105124
margin-left: auto !important;
106125
margin-right: auto !important;
107126
}
127+
108128
/*.card-content div {*/
109129
/* height: 325px;*/
110130
/*}*/
111131

112-
.paginated-card .card-action{
132+
.paginated-card .card-action {
113133
padding-left: 0px;
114134
padding-right: 0px;
115135
display: block;
116136

117137

118138
}
139+
119140
.input-field {
120141

121142
margin-top: 7px;
@@ -144,7 +165,7 @@ code {
144165
font-family: monospace;
145166
font-size: 14px;
146167
line-height: 16px;
147-
border-color:#ccc;
168+
border-color: #ccc;
148169
width: calc(100% + 30px);
149170
display: block;
150171
background-size: 26px;
@@ -164,11 +185,13 @@ code {
164185
min-height: 80px;
165186
/*height: 200px !important;*/
166187
}
167-
.nav-wrapper .input-field .editable-title{
188+
189+
.nav-wrapper .input-field .editable-title {
168190
margin-top: 0px !important;
169191
border-bottom: 0px !important;
170192
font-size: 30px;
171193
}
194+
172195
.flag {
173196
background: url('https://dl.dropboxusercontent.com/s/yx2q52k9g420tov/flags.png') no-repeat;
174197
background-color: #000;
@@ -179,58 +202,69 @@ code {
179202
margin-top: -25px !important;
180203
border-bottom: 0px !important;
181204
}
205+
182206
.card-title .input-field .helper-text {
183207
display: none !important;
184208
}
209+
185210
.card-title i {
186211
top: 20px;
187212
right: 20px;
188213
position: absolute;
189214
}
190-
.card-reveal .card-title .input-field{
215+
216+
.card-reveal .card-title .input-field {
191217
display: none !important;
192218
}
193219

194-
.card-reveal .card-title p{
220+
.card-reveal .card-title p {
195221
display: inline !important;
196222
}
223+
197224
.pagination li.active {
198225
background-color: #ddd;
199226
}
227+
200228
.card.huge {
201229
height: 822px;
202230
}
203231

204-
.card-title textarea:disabled{
232+
.card-title textarea:disabled {
205233
color: black !important;
206234
}
207-
nav textarea:disabled{
235+
236+
nav textarea:disabled {
208237
color: white !important;
209238
}
239+
210240
.select-wrapper {
211241
width: 140px;
212242
}
243+
213244
.card-action .select-wrapper {
214245
width: 120px;
215246
}
216247

217248
.fixed-icon {
218249
position: fixed;
219250
}
251+
220252
.wide-button {
221253
width: 120px;
222254
padding-left: 0px;
223255
}
256+
224257
.neo-color {
225258
/*background-color: #008cc1;*/
226259
background-color: white;
227260
color: grey;
228261
}
229262

230-
.neo-card .card-content{
263+
.neo-card .card-content {
231264
overflow-y: auto !important;
232265
overflow-x: auto !important;
233266
}
267+
234268
#modal-dark-footer .modal-footer {
235269
background-color: #555;
236270
color: lightgrey;
@@ -248,19 +282,21 @@ nav textarea:disabled{
248282

249283
/* Hide scrollbar for IE, Edge and Firefox */
250284
#Textarea-12 {
251-
-ms-overflow-style: none; /* IE and Edge */
252-
scrollbar-width: none; /* Firefox */
285+
-ms-overflow-style: none; /* IE and Edge */
286+
scrollbar-width: none; /* Firefox */
253287
}
254288

255289
.helper-text {
256290
display: none !important;
257291
}
292+
258293
.chip {
259294
position: relative;
260295
margin-bottom: 5px;
261296
}
297+
262298
/* Select inside chip */
263-
.chip .input-field{
299+
.chip .input-field {
264300
position: absolute;
265301

266302
top: 0px;
@@ -270,26 +306,32 @@ nav textarea:disabled{
270306
width: 100%;
271307
color: transparent;
272308
}
273-
.chip .input-field .select-wrapper{
309+
310+
.chip .input-field .select-wrapper {
274311
position: absolute;
275312
width: 100%;
276313

277314
height: 30px;
278315
}
279-
.chip .input-field .select-wrapper input{
316+
317+
.chip .input-field .select-wrapper input {
280318
color: transparent;
281319
border-bottom: none;
282320
}
283-
.chip .input-field .select-wrapper .select-dropdown{
321+
322+
.chip .input-field .select-wrapper .select-dropdown {
284323
position: absolute;
285324
width: 200px;
286325
}
287-
.chip .input-field label{
326+
327+
.chip .input-field label {
288328
display: none;
289329
}
290-
.chip .input-field .select-wrapper svg{
330+
331+
.chip .input-field .select-wrapper svg {
291332
display: none;
292333
}
334+
293335
.nav-wrapper .input-field {
294336
position: absolute;
295337
margin-left: auto;
@@ -298,19 +340,22 @@ nav textarea:disabled{
298340
right: 0;
299341
margin-right: auto;
300342
}
343+
301344
.nav-wrapper ul {
302345
z-index: -99;
303346
}
304-
.nav-wrapper .input-field textarea{
347+
348+
.nav-wrapper .input-field textarea {
305349
position: absolute;
306350

307351

308352
}
353+
309354
.container {
310355
width: 97.5%;
311356
}
312357

313-
.modal-input-text .input-field.col label{
358+
.modal-input-text .input-field.col label {
314359
left: 0px;
315360
}
316361

src/card/NeoCardSettings.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class NeoCardSettings extends React.Component {
5050
*/
5151
setDefaultComponents() {
5252
this.settingsTextArea =
53-
<NeoTextArea placeholder={this.props.placeholder} defaultValue={this.props.query} name="Query"
53+
<NeoTextArea placeholder={this.props.type == "text" ? "Enter Markdown here..." : this.props.placeholder}
54+
defaultValue={this.props.query} name="Query"
5455
onChange={this.stateChanged}/>;
5556
this.cypherParamsInput = <NeoTextInput defaultValue={this.props.parameters} onChange={this.stateChanged}
5657
changeEventLabel={"CypherParamsChanged"}
@@ -158,7 +159,7 @@ class NeoCardSettings extends React.Component {
158159
}
159160

160161
this.settingsSelectionArea = <div style={{width: "100%"}}>
161-
<hr style={{"display":"inline-block","width":"100%", "opacity":"0"}}></hr>
162+
<hr style={{"display": "inline-block", "width": "100%", "opacity": "0"}}></hr>
162163
{nodeSelectionBox}
163164
{propertySelectionBox}
164165
{propertyIdSelectionBox}
@@ -180,10 +181,21 @@ class NeoCardSettings extends React.Component {
180181
this.props.onChange(data);
181182
}
182183

184+
/**
185+
* Updates the query text box in the settings.
186+
*/
187+
updateQueryTextBox() {
188+
this.settingsTextArea =
189+
<NeoTextArea placeholder={this.props.type == "text" ? "Enter Markdown here..." : this.props.placeholder}
190+
defaultValue={this.props.query} name="Query"
191+
onChange={this.stateChanged}/>;
192+
}
193+
183194
/**
184195
* Renders the settings component.
185196
*/
186197
render() {
198+
this.updateQueryTextBox();
187199
this.buildCustomSelectionSettingsWindow();
188200
this.setTypeAndSizeSelectionComponents(this.props.type);
189201
return (

src/card/report/NeoPropertySelectReport.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ class NeoPropertySelectReport extends NeoReport {
5555
defaultValue={""}>
5656

5757
</NeoAutoCompleteText>
58-
<div style={{"marginTop": "40px", "position": "absolute", "left": "300px","top": "55px"}}>
59-
<Preloader color="green" size={"small"}/>
60-
</div>
6158
</div>
6259
return (content);
6360
}

0 commit comments

Comments
 (0)