Skip to content

Commit f66d7cb

Browse files
author
Erika Perugachi
authored
Merge pull request #257 from erikaperugachi/view
View
2 parents 39f6c23 + b7b558b commit f66d7cb

File tree

8 files changed

+56
-20
lines changed

8 files changed

+56
-20
lines changed

electron_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "criptext",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"author": {
55
"name": "Criptext Inc.",
66
"email": "[email protected]",

email_mailbox/src/components/ActivityPanel.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class ActivityPanel extends Component {
1616
return (
1717
<aside className="navigation-feed-container">
1818
<header>
19-
<div className="header-content">
19+
<div
20+
className="header-content"
21+
onClick={() => this.props.onToggleActivityPanel()}
22+
>
2023
{this.renderHeaderIcon()}
2124
<div className="header-title">ACTIVITY FEED</div>
22-
<div
23-
className="header-button"
24-
onClick={() => this.props.onToggleActivityPanel()}
25-
>
25+
<div className="header-button">
2626
<i className="icon-next" />
2727
</div>
2828
<div className="header-clear" />

email_mailbox/src/components/File.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3+
import ReactTooltip from 'react-tooltip';
34
import { convertToHumanSize } from './../utils/StringUtils';
45
import { FileType } from './../utils/const';
56
import './file.css';
67

78
const File = props => {
89
return (
9-
<div className="file-container">
10+
<div
11+
id={props.file.token}
12+
className="file-container"
13+
data-tip=""
14+
data-for={props.file.token}
15+
>
1016
{renderFileIcon(props.file.type)}
1117
<div className="file-content-detail">
1218
<span className="file-detail-name">{props.file.name}</span>
@@ -17,6 +23,16 @@ const File = props => {
1723
<button>
1824
<i className="icon-download" />
1925
</button>
26+
<ReactTooltip
27+
place="bottom"
28+
className="file-tooltip"
29+
id={props.file.token}
30+
type="dark"
31+
effect="solid"
32+
target={props.file.token}
33+
>
34+
{props.file.name}
35+
</ReactTooltip>
2036
</div>
2137
);
2238
};

email_mailbox/src/components/activitypanel.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ aside.navigation-feed-container{
2525
width: 288px;
2626

2727
.header-content {
28+
cursor: pointer;
2829
margin: 0%;
2930

3031
.feed-header-icon {
@@ -86,6 +87,7 @@ aside.navigation-feed-container{
8687

8788
.header-button {
8889
cursor: pointer;
90+
display: none;
8991
float: right;
9092
font-size: 24px;
9193
height: $_HEIGHT_HEADER;

email_mailbox/src/components/file.scss

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
border: 1px solid #e7e5e5;
66
border-radius: 6px;
77
display: flex;
8-
height: 38px;
8+
height: 20px;
99
margin-right: 20px;
10+
padding: 10px;
1011
position: relative;
11-
width: 256px;
12+
width: 236px;
1213

1314
&:hover{
1415
background-color: #f7f6f6;
@@ -32,10 +33,23 @@
3233
font-size: 13px;
3334
}
3435
}
36+
37+
.file-tooltip{
38+
background-color: #e1e1e1 !important;
39+
color: black !important;
40+
font-weight: normal;
41+
font-size: 10.5px !important;
42+
border-radius: 3px !important;
43+
padding: 4px 16px !important;
44+
45+
&:after{
46+
border-top-color: #e1e1e1 !important;
47+
border-bottom-color: #e1e1e1 !important;
48+
}
49+
}
3550
}
3651

3752
.file-content-icon{
38-
margin-left: 12px;
3953
position: relative;
4054

4155
>div{
@@ -54,25 +68,29 @@
5468
.icon-container-file-default{
5569
background-color: #4a90e2;
5670
}
57-
5871
}
5972

6073
.file-content-detail{
6174
display: flex;
6275
flex-grow: 1;
76+
height: 100%;
6377
margin-left: 10px;
64-
padding-right: 14px;
78+
width: calc(100% - 32px);
6579

6680
.file-detail-name{
67-
display: flex;
6881
flex-grow: 1;
6982
font-size: 14px;
7083
font-weight: 700;
84+
overflow: hidden;
85+
padding-right: 5px;
86+
text-overflow: ellipsis;
87+
white-space: nowrap;
7188
}
7289

7390
.file-detail-size{
7491
color: #9b9b9b;
7592
flex-grow: 0;
7693
font-size: 13px;
94+
white-space: nowrap;
7795
}
7896
}

email_mailbox/src/components/threaditem.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,28 +153,28 @@
153153
}
154154

155155
.thread-label-option{
156+
align-items: center;
157+
color: #d5d5d5;
156158
display: none;
159+
height: 100%;
160+
justify-content: space-around;
157161
padding-right: 10px;
158-
color: #d5d5d5;
159162
position: absolute;
160163
right: 0;
161-
height: 100%;
162-
justify-content: space-around;
163-
align-items: center;
164164

165165
> div{
166166
height: 31px;
167167
width: 31px;
168168
display: flex;
169169
align-items: center;
170170
justify-content: center;
171-
font-size: 12px;
172171
border-radius: 50%;
173172
margin-right: 9px;
174173
border: solid 1px rgba(128, 128, 128, 0);
175174

176175
i{
177176
color: rgba(60, 72, 88, 0.6);
177+
font-size: 16px;
178178
}
179179

180180
&.thread-label-mark{

email_mailbox/src/containers/Email.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const getContacts = (contacts, contactIds) => {
6262
const getFiles = (files, fileTokens) => {
6363
return fileTokens
6464
? files.size
65-
? fileTokens.map(token => {
65+
? fileTokens.filter(token => files.get(token)).map(token => {
6666
return files.get(token).toJS();
6767
})
6868
: []

email_mailbox/src/containers/ThreadHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const getLabelIncluded = (labels, threadLabels) => {
6060
};
6161

6262
const getThreadsIds = threads => {
63-
return !threads.length ? [] : Set(threads.map(thread => thread.get('id')));
63+
return !threads.size ? Set() : Set(threads.map(thread => thread.get('id')));
6464
};
6565

6666
const shouldMarkAsUnread = (threads, itemsChecked) => {

0 commit comments

Comments
 (0)