Merge pull request #1313 from mattermost/plt-992
PLT-992 / PLT-984 Fixed center channel height magic. Fixes tutorial.
Этот коммит содержится в:
@@ -61,9 +61,7 @@ export default class CenterPanel extends React.Component {
|
|||||||
<div id='channel-header'>
|
<div id='channel-header'>
|
||||||
<ChannelHeader />
|
<ChannelHeader />
|
||||||
</div>
|
</div>
|
||||||
<div id='post-list'>
|
{postsContainer}
|
||||||
{postsContainer}
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
className='post-create__container'
|
className='post-create__container'
|
||||||
id='post-create'
|
id='post-create'
|
||||||
|
|||||||
@@ -236,8 +236,6 @@ export default class CreatePost extends React.Component {
|
|||||||
PostStore.storeCurrentDraft(draft);
|
PostStore.storeCurrentDraft(draft);
|
||||||
}
|
}
|
||||||
resizePostHolder() {
|
resizePostHolder() {
|
||||||
const height = this.state.windowHeight - $(ReactDOM.findDOMNode(this.refs.topDiv)).height() - 50;
|
|
||||||
$('.post-list-holder-by-time').css('height', `${height}px`);
|
|
||||||
if (this.state.windowWidth > 960) {
|
if (this.state.windowWidth > 960) {
|
||||||
$('#post_textbox').focus();
|
$('#post_textbox').focus();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export default class PostsViewContainer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>{postListCtls}</div>
|
<div id='post-list'>{postListCtls}</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,15 +18,15 @@
|
|||||||
margin-left: 220px;
|
margin-left: 220px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
.channel__wrap & {
|
.channel__wrap & {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#post-create {
|
#post-create {
|
||||||
|
flex: 0 0 auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
@@ -61,4 +61,4 @@
|
|||||||
|
|
||||||
.delete-message-text {
|
.delete-message-text {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#channel-header {
|
#channel-header {
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
height: 58px;
|
height: 58px;
|
||||||
|
flex: 0 0 58px;
|
||||||
}
|
}
|
||||||
.row {
|
.row {
|
||||||
&.header {
|
&.header {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.markdown-inline-img {
|
.markdown-inline-img {
|
||||||
|
-moz-force-broken-image-icon: 1;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,12 +182,16 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#post-list {
|
#post-list {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
position: relative;
|
||||||
|
overflow-y: hidden;
|
||||||
.post-list-holder-by-time {
|
.post-list-holder-by-time {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 1em 0 0;
|
padding: 1em 0 0;
|
||||||
position: relative;
|
position: absolute;
|
||||||
|
height: 100%;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 0px !important;
|
width: 0px !important;
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gif-div {
|
.gif-div {
|
||||||
|
-moz-force-broken-image-icon: 1;
|
||||||
position:relative;
|
position:relative;
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user