UI Improvements for centre channel due to preview

Этот коммит содержится в:
Asaad Mahmood
2015-11-12 18:09:18 +05:00
родитель 8bd5c4bf47
Коммит 2f95210a29
5 изменённых файлов: 33 добавлений и 24 удалений

Просмотреть файл

@@ -252,7 +252,7 @@ export default class Textbox extends React.Component {
if (e.scrollHeight - mod < 167) { if (e.scrollHeight - mod < 167) {
$(e).css({height: 'auto', 'overflow-y': 'hidden'}).height(e.scrollHeight - mod); $(e).css({height: 'auto', 'overflow-y': 'hidden'}).height(e.scrollHeight - mod);
$(w).css({height: 'auto'}).height(e.scrollHeight + 2 + previewLinkHeightMod); $(w).css({height: 'auto'}).height(e.scrollHeight + 2);
$(w).closest('.post-body__cell').removeClass('scroll'); $(w).closest('.post-body__cell').removeClass('scroll');
if (this.state.preview) { if (this.state.preview) {
$(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'auto'}).height(e.scrollHeight - mod); $(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'auto'}).height(e.scrollHeight - mod);

Просмотреть файл

@@ -1,5 +1,6 @@
.preview-container { .preview-container {
position: relative; position: relative;
margin-top: 10px;
width: 100%; width: 100%;
max-height: 110px; max-height: 110px;
height: 110px; height: 110px;

Просмотреть файл

@@ -96,9 +96,9 @@
} }
.badge-notify { .badge-notify {
background:red; background: red;
position: absolute; position: absolute;
right: -5px; left: 4px;
top: -5px; top: 3px;
z-index: 100; z-index: 100;
} }

Просмотреть файл

@@ -46,21 +46,22 @@ body.ios {
.textarea-wrapper { .textarea-wrapper {
position:relative; position:relative;
min-height:57px; min-height: 36px;
.textbox-preview-area { .textbox-preview-area {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
top: 0; top: 0;
left: 0; left: 0;
box-shadow: none; box-shadow: none;
} }
.textbox-preview-link { .textbox-preview-link {
position: absolute; position: absolute;
z-index: 3; z-index: 3;
bottom: 0; bottom: -23px;
right: 10px; right: 0;
cursor: pointer; font-size: 13px;
} cursor: pointer;
}
} }
.date-separator, .new-separator { .date-separator, .new-separator {
@@ -339,7 +340,7 @@ body.ios {
} }
.msg-typing { .msg-typing {
min-height: 20px; min-height: 20px;
line-height: 18px; line-height: 25px;
display: inline-block; display: inline-block;
font-size: 13px; font-size: 13px;
@include opacity(0.7); @include opacity(0.7);

Просмотреть файл

@@ -507,8 +507,16 @@
form { form {
padding: 0; padding: 0;
} }
.post-create-footer {
.msg-typing {
margin-left: 45px;
width: 55%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.post-create-body { .post-create-body {
padding-bottom: 10px;
display: table; display: table;
width: 100%; width: 100%;
.post-body__cell { .post-body__cell {
@@ -532,11 +540,10 @@
display: table-cell; display: table-cell;
} }
} }
.post-create-footer .msg-typing {
display: none;
}
} }
.preview-container { .preview-container {
padding: 0px 10px;
margin-top: 20px;
.preview-div { .preview-div {
margin-top: 0; margin-top: 0;
} }