* PLT-5319 - Fixing text alignment security modal

* PLT-5280 - Fixing add comment button in RHS mobile

* PLT-5397 - Fixing Floating timestamp on mobile

* PLT-5129 - Hiding formatting help text

* PLT-5242 - Adjusting team sidebar border on IE!!

* PLT-5226 - Placing settings toggle over header

* PLT-5222 - Placed team description tooltip on top

* PLT-5201 - Account settings overlap on mobile

* PLT-5138 - Adding bg to pending post actions

* PLT-5286 - Adjusting play button on youtube videos

* PLT-5313 - Adjusting space between emoji reactions

* PLT-5187 - Adjusting text in channel switcher

* PLT-5399 - Reverting button alignment in modal
Этот коммит содержится в:
Asaad Mahmood
2017-01-30 19:39:43 +05:00
коммит произвёл Corey Hulen
родитель 95e3395a3b
Коммит 8a0db428bb
15 изменённых файлов: 176 добавлений и 149 удалений

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

@@ -49,7 +49,7 @@ export default class SelectTeamItem extends React.Component {
<OverlayTrigger <OverlayTrigger
trigger={['hover', 'focus', 'click']} trigger={['hover', 'focus', 'click']}
delayShow={1000} delayShow={1000}
placement='left' placement='top'
overlay={descriptionTooltip} overlay={descriptionTooltip}
ref='descriptionOverlay' ref='descriptionOverlay'
> >

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

@@ -49,7 +49,7 @@ export default class SettingItemMax extends React.Component {
submit = ( submit = (
<input <input
type='submit' type='submit'
className='btn btn-sm btn-primary pull-right' className='btn btn-sm btn-primary'
href='#' href='#'
onClick={this.props.submit} onClick={this.props.submit}
value={Utils.localizeMessage('setting_item_max.save', 'Save')} value={Utils.localizeMessage('setting_item_max.save', 'Save')}
@@ -88,7 +88,7 @@ export default class SettingItemMax extends React.Component {
{clientError} {clientError}
{submit} {submit}
<a <a
className='btn btn-sm pull-right' className='btn btn-sm'
href='#' href='#'
onClick={this.props.updateSection} onClick={this.props.updateSection}
> >

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

@@ -10,7 +10,7 @@ export default class SettingItemMin extends React.Component {
let editButton = null; let editButton = null;
if (!this.props.disableOpen) { if (!this.props.disableOpen) {
editButton = ( editButton = (
<li className='col-sm-3 section-edit'> <li className='col-xs-12 col-sm-3 section-edit'>
<a <a
className='theme' className='theme'
href='#' href='#'
@@ -31,9 +31,9 @@ export default class SettingItemMin extends React.Component {
className='section-min' className='section-min'
onClick={this.props.updateSection} onClick={this.props.updateSection}
> >
<li className='col-sm-9 section-title'>{this.props.title}</li> <li className='col-xs-12 col-sm-9 section-title'>{this.props.title}</li>
{editButton} {editButton}
<li className='col-sm-12 section-describe'>{this.props.describe}</li> <li className='col-xs-12 section-describe'>{this.props.describe}</li>
</ul> </ul>
); );
} }

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

@@ -73,7 +73,7 @@ export default class SettingPicture extends React.Component {
/> />
); );
} else { } else {
var confirmButtonClass = 'btn btn-sm pull-right'; var confirmButtonClass = 'btn btn-sm';
if (this.props.submitActive) { if (this.props.submitActive) {
confirmButtonClass += ' btn-primary'; confirmButtonClass += ' btn-primary';
} else { } else {
@@ -132,7 +132,7 @@ export default class SettingPicture extends React.Component {
</span> </span>
{confirmButton} {confirmButton}
<a <a
className='btn btn-sm theme pull-right' className='btn btn-sm theme'
href='#' href='#'
onClick={self.props.updateSection} onClick={self.props.updateSection}
> >

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

@@ -355,7 +355,7 @@ class UserSettingsGeneralTab extends React.Component {
if (!emailEnabled) { if (!emailEnabled) {
helpText = ( helpText = (
<div className='setting-list__hint text-danger'> <div className='setting-list__hint col-sm-12 text-danger'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailHelp2' id='user.settings.general.emailHelp2'
defaultMessage='Email has been disabled by your System Administrator. No notification emails will be sent until it is enabled.' defaultMessage='Email has been disabled by your System Administrator. No notification emails will be sent until it is enabled.'
@@ -437,7 +437,7 @@ class UserSettingsGeneralTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailGitlabCantUpdate' id='user.settings.general.emailGitlabCantUpdate'
defaultMessage='Login occurs through GitLab. Email cannot be updated. Email address used for notifications is {email}.' defaultMessage='Login occurs through GitLab. Email cannot be updated. Email address used for notifications is {email}.'
@@ -455,7 +455,7 @@ class UserSettingsGeneralTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailGoogleCantUpdate' id='user.settings.general.emailGoogleCantUpdate'
defaultMessage='Login occurs through Google Apps. Email cannot be updated. Email address used for notifications is {email}.' defaultMessage='Login occurs through Google Apps. Email cannot be updated. Email address used for notifications is {email}.'
@@ -473,7 +473,7 @@ class UserSettingsGeneralTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailOffice365CantUpdate' id='user.settings.general.emailOffice365CantUpdate'
defaultMessage='Login occurs through Office 365. Email cannot be updated. Email address used for notifications is {email}.' defaultMessage='Login occurs through Office 365. Email cannot be updated. Email address used for notifications is {email}.'
@@ -491,7 +491,7 @@ class UserSettingsGeneralTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='padding-bottom' className='padding-bottom'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailLdapCantUpdate' id='user.settings.general.emailLdapCantUpdate'
defaultMessage='Login occurs through AD/LDAP. Email cannot be updated. Email address used for notifications is {email}.' defaultMessage='Login occurs through AD/LDAP. Email cannot be updated. Email address used for notifications is {email}.'
@@ -509,7 +509,7 @@ class UserSettingsGeneralTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='padding-bottom' className='padding-bottom'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.general.emailSamlCantUpdate' id='user.settings.general.emailSamlCantUpdate'
defaultMessage='Login occurs through SAML. Email cannot be updated. Email address used for notifications is {email}.' defaultMessage='Login occurs through SAML. Email cannot be updated. Email address used for notifications is {email}.'

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

@@ -387,7 +387,7 @@ export default class SecurityTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.passwordGitlabCantUpdate' id='user.settings.security.passwordGitlabCantUpdate'
defaultMessage='Login occurs through GitLab. Password cannot be updated.' defaultMessage='Login occurs through GitLab. Password cannot be updated.'
@@ -401,7 +401,7 @@ export default class SecurityTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.passwordLdapCantUpdate' id='user.settings.security.passwordLdapCantUpdate'
defaultMessage='Login occurs through AD/LDAP. Password cannot be updated.' defaultMessage='Login occurs through AD/LDAP. Password cannot be updated.'
@@ -415,7 +415,7 @@ export default class SecurityTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.passwordSamlCantUpdate' id='user.settings.security.passwordSamlCantUpdate'
defaultMessage='This field is handled through your login provider. If you want to change it, you need to do so through your login provider.' defaultMessage='This field is handled through your login provider. If you want to change it, you need to do so through your login provider.'
@@ -429,7 +429,7 @@ export default class SecurityTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.passwordGoogleCantUpdate' id='user.settings.security.passwordGoogleCantUpdate'
defaultMessage='Login occurs through Google Apps. Password cannot be updated.' defaultMessage='Login occurs through Google Apps. Password cannot be updated.'
@@ -443,7 +443,7 @@ export default class SecurityTab extends React.Component {
key='oauthEmailInfo' key='oauthEmailInfo'
className='form-group' className='form-group'
> >
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.passwordOffice365CantUpdate' id='user.settings.security.passwordOffice365CantUpdate'
defaultMessage='Login occurs through Office 365. Password cannot be updated.' defaultMessage='Login occurs through Office 365. Password cannot be updated.'
@@ -834,7 +834,7 @@ export default class SecurityTab extends React.Component {
apps = ( apps = (
<div className='padding-bottom x2 authorized-app'> <div className='padding-bottom x2 authorized-app'>
<div className='col-sm-12'> <div className='col-sm-12'>
<div className='setting-list__hint'> <div className='setting-list__hint col-sm-12'>
<FormattedMessage <FormattedMessage
id='user.settings.security.noApps' id='user.settings.security.noApps'
defaultMessage='No OAuth 2.0 Applications are authorized.' defaultMessage='No OAuth 2.0 Applications are authorized.'

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

@@ -21,6 +21,13 @@
width: 100%; width: 100%;
z-index: 101; z-index: 101;
.status {
font-size: 15px;
text-align: center;
vertical-align: bottom;
width: 20px;
}
.fa-user { .fa-user {
position: relative; position: relative;
top: -1px; top: -1px;

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

@@ -1,93 +1,95 @@
@charset 'UTF-8'; @charset 'UTF-8';
.video-div { .post {
margin-bottom: 8px; .video-div {
max-width: 480px; margin-bottom: 8px;
position: relative; max-width: 480px;
position: relative;
.video-thumbnail { .video-thumbnail {
height: auto; height: auto;
max-width: 100%; max-width: 100%;
}
.video-thumbnail__error {
height: 100%;
line-height: 2;
padding: 110px 0;
text-align: center;
width: 100%;
.fa {
@include opacity(.5);
} }
div { .video-thumbnail__error {
font-size: 1.2em; height: 100%;
line-height: 2;
padding: 110px 0;
text-align: center;
width: 100%;
.fa {
@include opacity(.5);
}
div {
font-size: 1.2em;
}
}
.block {
background-color: alpha-color($black, .5);
border-radius: 10px;
height: 150px;
left: 50%;
margin: -75px 0 0 -100px;
position: absolute;
top: 50%;
width: 200px;
} }
} }
.block { .video-type {
background-color: alpha-color($black, .5); @include opacity(.8);
border-radius: 10px; font-size: 15px;
height: 150px; margin: 0;
left: 50%; padding: 0;
margin: -75px 0 0 -100px; }
.video-title {
font-size: 15px;
margin-top: 3px;
}
.play-button {
@include border-radius(14px);
border: 4px solid alpha-color($white, .4);
height: 100px;
position: absolute; position: absolute;
top: 50%; right: 51px;
width: 200px; top: 26px;
} width: 100px;
}
.video-type { span {
@include opacity(.8); border-bottom: 36px solid transparent;
font-size: 15px; border-left: 60px solid alpha-color($white, .4);
margin: 0; border-top: 36px solid transparent;
padding: 0; height: 0;
} left: 20px;
position: absolute;
.video-title { top: 10px;
font-size: 15px; width: 0;
margin-top: 3px; }
}
.play-button {
@include border-radius(14px);
border: 4px solid alpha-color($white, .4);
height: 100px;
position: absolute;
right: 51px;
top: 26px;
width: 100px;
span {
border-bottom: 36px solid transparent;
border-left: 60px solid alpha-color($white, .4);
border-top: 36px solid transparent;
height: 0;
left: 20px;
position: absolute;
top: 10px;
width: 0;
}
}
.img-div {
-moz-force-broken-image-icon: 1;
border-radius: 5px;
margin-bottom: 8px;
max-height: 500px;
max-width: 450px;
position: relative;
&.placeholder {
height: 500px;
} }
.sidebar--right & { .img-div {
max-width: 100%; -moz-force-broken-image-icon: 1;
border-radius: 5px;
margin-bottom: 8px;
max-height: 500px;
max-width: 450px;
position: relative;
&.placeholder {
height: 500px;
}
.sidebar--right & {
max-width: 100%;
}
}
.video-loading {
height: 360px;
} }
} }
.video-loading {
height: 360px;
}

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

@@ -275,8 +275,9 @@
.sidebar-header-dropdown, .sidebar-header-dropdown,
.admin-navbar-dropdown { .admin-navbar-dropdown {
font-size: .85em; font-size: .85em;
position: absolute; left: 0;
margin-right: -15px; margin-right: -15px;
position: absolute;
right: 22px; right: 22px;
top: 10px; top: 10px;
z-index: 5; z-index: 5;
@@ -287,16 +288,19 @@
@include single-transition(all, .1s, linear); @include single-transition(all, .1s, linear);
background: none; background: none;
color: $white; color: $white;
float: right; display: block;
font-size: 1em; font-size: 1em;
height: 40px;
left: 0;
line-height: 1.8; line-height: 1.8;
padding: 10px; padding: 10px;
width: 100%;
} }
.dropdown-menu { .dropdown-menu {
width: 199px;
margin-top: 4px;
margin-right: 3px; margin-right: 3px;
margin-top: 4px;
width: 199px;
a { a {
overflow: hidden; overflow: hidden;
@@ -308,6 +312,7 @@
.sidebar-header-dropdown__icon, .sidebar-header-dropdown__icon,
.admin-navbar-dropdown__icon { .admin-navbar-dropdown__icon {
fill: $white; fill: $white;
float: right;
} }
} }

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

@@ -311,7 +311,7 @@
&.scrolling { &.scrolling {
@include translateY(0); @include translateY(0);
@include opacity(.8); @include opacity(.9);
} }
&.rhs { &.rhs {
@@ -322,6 +322,7 @@
@include border-radius(3px); @include border-radius(3px);
@include font-smoothing(initial); @include font-smoothing(initial);
background: $primary-color; background: $primary-color;
border: 1px solid;
color: $white; color: $white;
display: inline-block; display: inline-block;
font-size: 12px; font-size: 12px;
@@ -585,6 +586,7 @@
top: 2px; top: 2px;
} }
} }
.search-item-snippet { .search-item-snippet {
blockquote { blockquote {
margin-top: 0; margin-top: 0;
@@ -1091,7 +1093,7 @@
} }
.pending-post-actions { .pending-post-actions {
background: alpha-property($black, .7); background: alpha-color($black, .7);
color: $white; color: $white;
font-size: .9em; font-size: .9em;
padding: 5px 7px; padding: 5px 7px;
@@ -1111,6 +1113,42 @@
font-size: .87em; font-size: .87em;
} }
} }
.post-reaction-list {
min-height: 30px;
}
.post-reaction {
@include user-select(none);
@include border-radius(3px);
border: 1px solid $primary-color;
cursor: pointer;
display: inline-block;
font-size: 11px;
height: 23px;
margin-bottom: 5px;
margin-right: 5px;
padding: 0 4px 0 3px;
.post-reaction__emoji {
height: 16px;
margin: 2px 3px 0 0;
vertical-align: top;
width: 16px;
}
.post-reaction__count {
line-height: 10px;
position: relative;
top: 3px;
}
&--current-user {
.post-reaction__count {
font-weight: 600;
}
}
}
} }
.post__link { .post__link {
@@ -1299,39 +1337,3 @@
margin-left: 50px !important; margin-left: 50px !important;
min-width: 320px; min-width: 320px;
} }
.post-reaction-list {
min-height: 30px;
}
.post-reaction {
@include user-select(none);
@include border-radius(3px);
border: 1px solid $primary-color;
cursor: pointer;
display: inline-block;
font-size: 11px;
height: 23px;
padding: 0 4px 0 3px;
margin-right: 5px;
margin-bottom: 5px;
.post-reaction__emoji {
height: 16px;
margin: 2px 3px 0 0;
vertical-align: top;
width: 16px;
}
.post-reaction__count {
line-height: 10px;
position: relative;
top: 3px;
}
&--current-user {
.post-reaction__count {
font-weight: 600;
}
}
}

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

@@ -21,6 +21,8 @@
width: 100%; width: 100%;
a { a {
display: block;
margin-left: 11px;
text-decoration: none; text-decoration: none;
} }

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

@@ -54,6 +54,10 @@
} }
} }
.help__format-text {
display: none;
}
.inner-wrap { .inner-wrap {
&.move--left, &.move--left,
&.webrtc--show { &.webrtc--show {

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

@@ -608,6 +608,17 @@
display: block; display: block;
.settings-content { .settings-content {
.section-title {
padding-right: 15px;
}
.section-edit {
position: relative;
right: 0;
text-align: left;
top: 0;
}
.appearance-section { .appearance-section {
.theme-elements { .theme-elements {
.element { .element {
@@ -1080,16 +1091,14 @@
} }
.post-create-footer { .post-create-footer {
padding: 0 45px 0 45px;
.control-label { .control-label {
margin: .5em 0; margin: .5em 0;
top: 0; top: 0;
} }
.post-error { .post-error {
top: 0;
left: 0; left: 0;
top: 0;
} }
} }
} }

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

@@ -33,7 +33,6 @@
} }
.post-error { .post-error {
left: 32px;
position: relative; position: relative;
top: 0; top: 0;
@@ -117,10 +116,6 @@
width: 100%; width: 100%;
} }
.help__format-text {
display: none;
}
.inner-wrap { .inner-wrap {
&:not(.move--left) { &:not(.move--left) {
margin-right: 0 !important; margin-right: 0 !important;

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

@@ -526,6 +526,7 @@ export function applyTheme(theme) {
changeCss('.app__body .modal .modal-header .modal-title, .app__body .modal .modal-header .modal-title .name, .app__body .modal .modal-header button.close', 'color:' + theme.sidebarHeaderTextColor); changeCss('.app__body .modal .modal-header .modal-title, .app__body .modal .modal-header .modal-title .name, .app__body .modal .modal-header button.close', 'color:' + theme.sidebarHeaderTextColor);
changeCss('.app__body #navbar .navbar-default .navbar-brand .heading', 'color:' + theme.sidebarHeaderTextColor); changeCss('.app__body #navbar .navbar-default .navbar-brand .heading', 'color:' + theme.sidebarHeaderTextColor);
changeCss('.app__body #navbar .navbar-default .navbar-toggle .icon-bar', 'background:' + theme.sidebarHeaderTextColor); changeCss('.app__body #navbar .navbar-default .navbar-toggle .icon-bar', 'background:' + theme.sidebarHeaderTextColor);
changeCss('.app__body .post-list__timestamp > div', 'border-color:' + changeOpacity(theme.sidebarHeaderTextColor, 0.5));
changeCss('@media(max-width: 768px){.app__body .search-bar__container', 'color:' + theme.sidebarHeaderTextColor); changeCss('@media(max-width: 768px){.app__body .search-bar__container', 'color:' + theme.sidebarHeaderTextColor);
} }