Merge pull request #797 from asaadmahmoodspin/bug-fixes
Bug fixes and UI improvements for multiple tickets
Этот коммит содержится в:
@@ -5,6 +5,8 @@ var UserStore = require('../stores/user_store.jsx');
|
|||||||
var utils = require('../utils/utils.jsx');
|
var utils = require('../utils/utils.jsx');
|
||||||
|
|
||||||
var Constants = require('../utils/constants.jsx');
|
var Constants = require('../utils/constants.jsx');
|
||||||
|
var Tooltip = ReactBootstrap.Tooltip;
|
||||||
|
var OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
||||||
|
|
||||||
export default class PostInfo extends React.Component {
|
export default class PostInfo extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -148,15 +150,19 @@ export default class PostInfo extends React.Component {
|
|||||||
|
|
||||||
var dropdown = this.createDropdown();
|
var dropdown = this.createDropdown();
|
||||||
|
|
||||||
|
let tooltip = <Tooltip>{utils.displayDate(post.create_at)} at ${utils.displayTime(post.create_at)}</Tooltip>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className='post-header post-info'>
|
<ul className='post-header post-info'>
|
||||||
<li className='post-header-col'>
|
<li className='post-header-col'>
|
||||||
<time
|
<OverlayTrigger
|
||||||
className='post-profile-time'
|
placement='top'
|
||||||
title={`${utils.displayDate(post.create_at)} at ${utils.displayTime(post.create_at)}`}
|
overlay={tooltip}
|
||||||
>
|
>
|
||||||
{utils.displayDateTime(post.create_at)}
|
<time className='post-profile-time'>
|
||||||
</time>
|
{utils.displayDateTime(post.create_at)}
|
||||||
|
</time>
|
||||||
|
</OverlayTrigger>
|
||||||
</li>
|
</li>
|
||||||
<li className='post-header-col post-header__reply'>
|
<li className='post-header-col post-header__reply'>
|
||||||
<div className='dropdown'>
|
<div className='dropdown'>
|
||||||
|
|||||||
@@ -615,8 +615,9 @@ export function applyTheme(theme) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (theme.centerChannelColor) {
|
if (theme.centerChannelColor) {
|
||||||
changeCss('.app__content', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.app__content, .post-create__container .post-create-body .btn-file', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('#post-create', 'color:' + theme.centerChannelColor, 2);
|
changeCss('#post-create', 'color:' + theme.centerChannelColor, 2);
|
||||||
|
changeCss('.post-body hr', 'background:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.channel-header .heading', 'color:' + theme.centerChannelColor, 1);
|
changeCss('.channel-header .heading', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.channel-header__info>div.dropdown .header-dropdown__icon', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
changeCss('.channel-header__info>div.dropdown .header-dropdown__icon', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
||||||
|
|||||||
@@ -2,10 +2,20 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
.markdown__paragraph-inline {
|
.markdown__paragraph-inline {
|
||||||
display: inline;
|
display: inline;
|
||||||
+ .markdown__paragraph-inline {
|
+ .markdown__paragraph-inline {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.post-body {
|
||||||
|
hr {
|
||||||
|
height: 4px;
|
||||||
|
padding: 0;
|
||||||
|
margin: 15px 0 16px;
|
||||||
|
background-color: #e7e7e7;
|
||||||
|
border: 0 none;
|
||||||
|
@include opacity(0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.markdown__table {
|
.markdown__table {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@@ -21,6 +31,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
blockquote {
|
||||||
|
border: none;
|
||||||
|
position: relative;
|
||||||
|
font-size: 16px;
|
||||||
|
padding: 10px 10px 10px 38px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
&:before {
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: inherit;
|
||||||
|
content: "\f10d";
|
||||||
|
left: 8px;
|
||||||
|
top: 5px;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 20px;
|
||||||
|
@include opacity(0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
pre {
|
pre {
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
|
|||||||
@@ -66,8 +66,4 @@
|
|||||||
.mention-highlight {
|
.mention-highlight {
|
||||||
background-color:#fff2bb;
|
background-color:#fff2bb;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
|
||||||
|
|
||||||
.mention-link {
|
|
||||||
color:$primary-color;
|
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,7 @@ body.ios {
|
|||||||
.post-create__container {
|
.post-create__container {
|
||||||
form {
|
form {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 1em;
|
padding: 10px 1em 0 1em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.post-create-body {
|
.post-create-body {
|
||||||
@@ -229,12 +229,13 @@ body.ios {
|
|||||||
right: 0;
|
right: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
color: #999;
|
color: #444;
|
||||||
|
@include opacity(0.5);
|
||||||
@include single-transition(all, 0.15s);
|
@include single-transition(all, 0.15s);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 7px 9px 6px;
|
padding: 7px 9px 6px;
|
||||||
&:hover, &:active {
|
&:hover, &:active {
|
||||||
color: #444;
|
@include opacity(0.9);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -417,7 +417,7 @@
|
|||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
form {
|
form {
|
||||||
padding: 0;
|
padding: 10px 0 0 0;
|
||||||
}
|
}
|
||||||
.post-create-body {
|
.post-create-body {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
.video-div {
|
.video-div {
|
||||||
position:relative;
|
position:relative;
|
||||||
max-width: 480px;
|
max-width: 480px;
|
||||||
|
margin-bottom: 8px;
|
||||||
.video-thumbnail {
|
.video-thumbnail {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -19,18 +20,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.video-type {
|
.video-type {
|
||||||
color:grey;
|
@include opacity(0.8);
|
||||||
font-size:15px;
|
font-size:15px;
|
||||||
font-weight:200;
|
|
||||||
margin:0px;
|
margin:0px;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-uploader {
|
.video-uploader {
|
||||||
font-size:15px;
|
font-size: 13px;
|
||||||
margin-top:3px;
|
margin: 0 0 15px;
|
||||||
margin-bottom:0px;
|
|
||||||
padding:0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-title {
|
.video-title {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user