Skip to content

Commit 5c1b993

Browse files
author
vikasrohit
authored
Merge pull request #606 from appirio-tech/dev
Promoting to prod
2 parents e6ec54f + b11517a commit 5c1b993

File tree

8 files changed

+323
-138
lines changed

8 files changed

+323
-138
lines changed

src/api/messages.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function getTopicPosts(topicId, postIds) {
4545
}
4646

4747
export function createTopic(topicProps) {
48-
return axios.post(`${TC_API_URL}/v4/topics/`, topicProps)
48+
return axios.post(`${TC_API_URL}/v4/topics/`, topicProps, { timeout: 1.5 * 60 * 1000 })
4949
.then( resp => {
5050
return _.get(resp.data, 'result.content', {})
5151
})
@@ -54,7 +54,7 @@ export function createTopic(topicProps) {
5454
// ignore resp
5555
/*eslint-disable no-unused-vars */
5656
export function addTopicPost(topicId, post) {
57-
return axios.post(`${TC_API_URL}/v4/topics/${topicId}/posts`, { post: post.content } )
57+
return axios.post(`${TC_API_URL}/v4/topics/${topicId}/posts`, { post: post.content }, { timeout: 1.5 * 60 * 1000 } )
5858
.then( resp => {
5959
return {
6060
topicId,

src/components/ActionCard/ActionCard.scss

+11-1
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,18 @@
352352
border-radius: $corner-radius;
353353
}
354354

355-
a {
355+
356+
// Link colors
357+
a:link,
358+
a:visited {
359+
color: $tc-dark-blue;
360+
text-decoration: none;
361+
}
362+
363+
a:hover,
364+
a:active {
356365
color: $tc-dark-blue-70;
366+
text-decoration: underline;
357367
}
358368

359369
input {

src/components/Grid/GridView.scss

+145-120
Original file line numberDiff line numberDiff line change
@@ -410,133 +410,158 @@
410410

411411
/* .pages */
412412
.pages {
413-
background: $tc-gray-neutral-light;
414-
min-height: 70px;
415-
border-bottom-left-radius: 4px;
416-
border-bottom-right-radius: 4px;
417-
.right-page {
413+
background: $tc-gray-neutral-light;
414+
min-height: 70px;
415+
border-bottom-left-radius: 4px;
416+
border-bottom-right-radius: 4px;
417+
.right-page {
418+
background: $tc-white;
419+
border: 1px solid $tc-gray-30;
420+
border-radius: 2px;
421+
height: 30px;
422+
margin: 20px 20px 0 0;
423+
float: right;
424+
display: flex;
425+
ul {
426+
display: flex;
427+
}
428+
ul,
429+
li,
430+
.btn-prev,
431+
.btn-next {
432+
text-align: center;
433+
// float: left;
434+
}
435+
li {
436+
border-right: 1px solid $tc-gray-30;
437+
position: relative;
438+
&.active a {
439+
background: $tc-gray-20;
440+
box-shadow: inset -1px 1px 2px 0px rgba(71,71,79,0.20);
441+
}
442+
.down-layer {
418443
background: $tc-white;
419-
border: 1px solid $tc-gray-30;
420-
border-radius: 2px;
421-
height: 30px;
422-
margin: 20px 20px 0 0;
423-
float: right;
424-
ul,
425-
li,
426-
.btn-prev,
427-
.btn-next {
428-
text-align: center;
429-
float: left;
444+
border-radius: 5px;
445+
text-align: left;
446+
min-width: 140px;
447+
min-height: 55px;
448+
margin-bottom: 15px;
449+
position: absolute;
450+
top: 40px;
451+
left: 50%;
452+
margin-left: -70px;
453+
box-shadow: 0 0 10px rgba(10, 10, 10, 0.2);
454+
z-index: 99;
455+
&::before {
456+
font-size: 0;
457+
line-height: 0;
458+
width: 0;
459+
height: 0;
460+
border-left: 7px solid transparent;
461+
border-right: 7px solid transparent;
462+
border-bottom: 7px solid #fff;
463+
content: "";
464+
display: block;
465+
position: absolute;
466+
top: -7px;
467+
left: 50%;
468+
margin-left: -7px;
430469
}
431-
li {
432-
border-right: 1px solid $tc-gray-30;
433-
position: relative;
434-
&.active a {
435-
background: $tc-gray-20;
436-
box-shadow: inset -1px 1px 2px 0px rgba(71,71,79,0.20);
437-
}
438-
.down-layer {
439-
background: $tc-white;
440-
border-radius: 5px;
441-
text-align: left;
442-
min-width: 140px;
443-
min-height: 55px;
444-
margin-bottom: 15px;
445-
position: absolute;
446-
top: 40px;
447-
left: 50%;
448-
margin-left: -70px;
449-
box-shadow: 0 0 10px rgba(10, 10, 10, 0.2);
450-
z-index: 99;
451-
&::before {
452-
font-size: 0;
453-
line-height: 0;
454-
width: 0;
455-
height: 0;
456-
border-left: 7px solid transparent;
457-
border-right: 7px solid transparent;
458-
border-bottom: 7px solid #fff;
459-
content: "";
460-
display: block;
461-
position: absolute;
462-
top: -7px;
463-
left: 50%;
464-
margin-left: -7px;
465-
}
466-
.txt {
467-
@include roboto;
468-
font-size: $tc-label-md;
469-
color: #394146;
470-
line-height: $base-unit * 6;
471-
padding: 13px 0 0 13px;
472-
display: block;
473-
float: left;
474-
}
475-
.inputs {
476-
width: 34px;
477-
height: 30px;
478-
display: block;
479-
margin: 13px 0 0 90px;
480-
input {
481-
@include roboto;
482-
font-size: $tc-label-md;
483-
color: #394146;
484-
background: $tc-gray-neutral-light;
485-
line-height: $base-unit * 4;
486-
text-align: center;
487-
height: 30px;
488-
padding: 2px 0 0 0;
489-
margin: 0;
490-
}
491-
}
492-
}
470+
.txt {
471+
@include roboto;
472+
font-size: $tc-label-md;
473+
color: #394146;
474+
line-height: $base-unit * 6;
475+
padding: 13px 0 0 13px;
476+
display: block;
477+
float: left;
493478
}
494-
a {
479+
.inputs {
480+
width: 34px;
481+
height: 30px;
482+
display: block;
483+
margin: 13px 0 0 90px;
484+
input {
495485
@include roboto;
496486
font-size: $tc-label-md;
497-
color: $tc-gray-80;
498-
height: 28px;
499-
min-width: 27px;
500-
padding: 1px 8px;
501-
line-height: $base-unit + 23;
502-
display: block;
503-
&.btn-prev {
504-
border-right: 1px solid $tc-gray-30;
505-
min-width: 70px;
506-
padding-left: 24px;
507-
position: relative;
508-
&:before {
509-
font-size: 0;
510-
line-height: 0;
511-
background: url("./images/arrow-left.svg") no-repeat 0 0;
512-
width: 12px;
513-
height: 12px;
514-
content: "";
515-
display: block;
516-
position: absolute;
517-
top: 9px;
518-
left: 12px;
519-
}
520-
}
521-
&.btn-next {
522-
min-width: 70px;
523-
padding-right: 24px;
524-
position: relative;
525-
&:after {
526-
font-size: 0;
527-
line-height: 0;
528-
background: url("./images/arrow-right.svg") no-repeat 0 0;
529-
width: 12px;
530-
height: 12px;
531-
content: "";
532-
display: block;
533-
position: absolute;
534-
top: 9px;
535-
right: 12px;
536-
}
537-
}
487+
color: #394146;
488+
background: $tc-gray-neutral-light;
489+
line-height: $base-unit * 4;
490+
text-align: center;
491+
height: 30px;
492+
padding: 2px 0 0 0;
493+
margin: 0;
494+
}
538495
}
496+
}
497+
498+
&.go-to-page-pill {
499+
.tooltip-target {
500+
min-width: 27px;
501+
height: 28px;
502+
}
503+
504+
.go-to-page-tooltip {
505+
display: flex;
506+
align-items: center;
507+
@include tc-label-md;
508+
line-height: $base-unit * 6;
509+
510+
input[type="number"] {
511+
width: 50px;
512+
height: $base-unit * 6;
513+
margin-bottom: 0px;
514+
margin-left: $base-unit * 2;
515+
}
516+
}
517+
}
518+
}
519+
a {
520+
@include roboto;
521+
font-size: $tc-label-md;
522+
color: $tc-gray-80;
523+
height: 28px;
524+
min-width: 27px;
525+
padding: 1px 8px;
526+
line-height: $base-unit + 23;
527+
display: block;
528+
&.btn-prev {
529+
border-right: 1px solid $tc-gray-30;
530+
min-width: 70px;
531+
padding-left: 24px;
532+
position: relative;
533+
&:before {
534+
font-size: 0;
535+
line-height: 0;
536+
background: url("./images/arrow-left.svg") no-repeat 0 0;
537+
width: 12px;
538+
height: 12px;
539+
content: "";
540+
display: block;
541+
position: absolute;
542+
top: 9px;
543+
left: 12px;
544+
}
545+
}
546+
&.btn-next {
547+
min-width: 70px;
548+
padding-right: 24px;
549+
position: relative;
550+
&:after {
551+
font-size: 0;
552+
line-height: 0;
553+
background: url("./images/arrow-right.svg") no-repeat 0 0;
554+
width: 12px;
555+
height: 12px;
556+
content: "";
557+
display: block;
558+
position: absolute;
559+
top: 9px;
560+
right: 12px;
561+
}
562+
}
539563
}
564+
}
540565
}
541566

542567

0 commit comments

Comments
 (0)