summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-05-19 18:29:15 +0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-05-19 09:29:15 -0400
commit5ea7d9bbef2cf9da229e66bd05af776479e76f56 (patch)
tree66f32d9114e88e3355e7936251487b774c52c184
parentc868620693c69e2931c3023460eaafd9f6d330b6 (diff)
downloadchat-5ea7d9bbef2cf9da229e66bd05af776479e76f56.tar.gz
chat-5ea7d9bbef2cf9da229e66bd05af776479e76f56.tar.bz2
chat-5ea7d9bbef2cf9da229e66bd05af776479e76f56.zip
Multiple UI Improvements (#3038)
-rw-r--r--webapp/components/navbar_dropdown.jsx5
-rw-r--r--webapp/components/post.jsx27
-rw-r--r--webapp/components/rhs_thread.jsx9
-rw-r--r--webapp/components/team_general_tab.jsx6
-rw-r--r--webapp/i18n/en.json2
-rw-r--r--webapp/i18n/es.json2
-rw-r--r--webapp/i18n/pt.json2
-rw-r--r--webapp/sass/components/_scrollbar.scss8
-rw-r--r--webapp/sass/layout/_markdown.scss8
-rw-r--r--webapp/sass/layout/_post.scss24
-rw-r--r--webapp/sass/layout/_sidebar-left.scss8
-rw-r--r--webapp/sass/responsive/_mobile.scss14
-rw-r--r--webapp/sass/routes/_settings.scss6
-rw-r--r--webapp/sass/routes/_signup.scss4
-rw-r--r--webapp/utils/constants.jsx4
15 files changed, 84 insertions, 45 deletions
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx
index 68ea625f8..a2592787c 100644
--- a/webapp/components/navbar_dropdown.jsx
+++ b/webapp/components/navbar_dropdown.jsx
@@ -80,7 +80,6 @@ export default class NavbarDropdown extends React.Component {
var inviteLink = '';
var manageLink = '';
var sysAdminLink = '';
- var adminDivider = '';
var currentUser = this.props.currentUser;
var isAdmin = false;
var isSystemAdmin = false;
@@ -134,8 +133,6 @@ export default class NavbarDropdown extends React.Component {
</li>
);
- adminDivider = (<li className='divider'></li>);
-
teamSettings = (
<li>
<a
@@ -312,7 +309,7 @@ export default class NavbarDropdown extends React.Component {
/>
</a>
</li>
- {adminDivider}
+ <li className='divider'></li>
{teamSettings}
{integrationsLink}
{manageLink}
diff --git a/webapp/components/post.jsx b/webapp/components/post.jsx
index de32568d1..084fb9171 100644
--- a/webapp/components/post.jsx
+++ b/webapp/components/post.jsx
@@ -191,24 +191,21 @@ export default class Post extends React.Component {
systemMessageClass = 'post--system';
}
- let profilePic = null;
- if (!this.props.hideProfilePic || this.props.compactDisplay) {
+ let profilePic = (
+ <img
+ src={Utils.getProfilePicSrcForPost(post, timestamp)}
+ height='36'
+ width='36'
+ />
+ );
+
+ if (Utils.isSystemMessage(post)) {
profilePic = (
- <img
- src={Utils.getProfilePicSrcForPost(post, timestamp)}
- height='36'
- width='36'
+ <span
+ className='icon'
+ dangerouslySetInnerHTML={{__html: mattermostLogo}}
/>
);
-
- if (Utils.isSystemMessage(post)) {
- profilePic = (
- <span
- className='icon'
- dangerouslySetInnerHTML={{__html: mattermostLogo}}
- />
- );
- }
}
let centerClass = '';
diff --git a/webapp/components/rhs_thread.jsx b/webapp/components/rhs_thread.jsx
index 2398e5e69..ca5ed2dc8 100644
--- a/webapp/components/rhs_thread.jsx
+++ b/webapp/components/rhs_thread.jsx
@@ -17,6 +17,14 @@ import Scrollbars from 'react-custom-scrollbars';
import React from 'react';
+export function renderView(props) {
+ return (
+ <div
+ {...props}
+ className='scrollbar--view'
+ />);
+}
+
export function renderThumbHorizontal(props) {
return (
<div
@@ -211,6 +219,7 @@ export default class RhsThread extends React.Component {
autoHideDuration={500}
renderThumbHorizontal={renderThumbHorizontal}
renderThumbVertical={renderThumbVertical}
+ renderView={renderView}
>
<div className='post-right__scroll'>
<RootPost
diff --git a/webapp/components/team_general_tab.jsx b/webapp/components/team_general_tab.jsx
index 9242fc03d..70d52740e 100644
--- a/webapp/components/team_general_tab.jsx
+++ b/webapp/components/team_general_tab.jsx
@@ -9,7 +9,7 @@ import Client from 'utils/web_client.jsx';
import * as Utils from 'utils/utils.jsx';
import TeamStore from 'stores/team_store.jsx';
-import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl';
+import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
const holders = defineMessages({
dirDisabled: {
@@ -378,9 +378,9 @@ class GeneralTab extends React.Component {
</div>
</div>
<div className='setting-list__hint'>
- <FormattedMessage
+ <FormattedHTMLMessage
id='general_tab.codeLongDesc'
- defaultMessage='The Invite Code is used as part of the URL in the team invitation link created by **Get Team Invite Link** in the main menu. Regenerating creates a new team invitation link and invalidates the previous link.'
+ defaultMessage='The Invite Code is used as part of the URL in the team invitation link created by <strong>Get Team Invite Link</strong> in the main menu. Regenerating creates a new team invitation link and invalidates the previous link.'
/>
</div>
</div>
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json
index 50f0538fc..e75691663 100644
--- a/webapp/i18n/en.json
+++ b/webapp/i18n/en.json
@@ -893,7 +893,7 @@
"find_team.submitError": "Please enter a valid email address",
"general_tab.chooseName": "Please choose a new name for your team",
"general_tab.codeDesc": "Click 'Edit' to regenerate Invite Code.",
- "general_tab.codeLongDesc": "The Invite Code is used as part of the URL in the team invitation link created by **Get Team Invite Link** in the main menu. Regenerating creates a new team invitation link and invalidates the previous link.",
+ "general_tab.codeLongDesc": "The Invite Code is used as part of the URL in the team invitation link created by <strong>Get Team Invite Link</strong> in the main menu. Regenerating creates a new team invitation link and invalidates the previous link.",
"general_tab.codeTitle": "Invite Code",
"general_tab.dirContact": "Contact your system administrator to turn on the team directory on the system home page.",
"general_tab.dirDisabled": "Team Directory has been disabled. Please ask a System Admin to enable the Team Directory in the System Console team settings.",
diff --git a/webapp/i18n/es.json b/webapp/i18n/es.json
index ab7d0d9cf..97135e9c0 100644
--- a/webapp/i18n/es.json
+++ b/webapp/i18n/es.json
@@ -893,7 +893,7 @@
"find_team.submitError": "Por favor ingresa una dirección válida",
"general_tab.chooseName": "Por favor escoge otro nombre para tu equipo",
"general_tab.codeDesc": "Pincha 'Editar' para regenerar el código de Invitación.",
- "general_tab.codeLongDesc": "El Código de Invitación es utilizado como parte del URL del enlace creado por la opción **Obtener Enlace de invitación** en el menú principal. Regenerar este código crea un nuevo enlace e invalida los enlaces anteriores.",
+ "general_tab.codeLongDesc": "El Código de Invitación es utilizado como parte del URL del enlace creado por la opción <strong>Obtener Enlace de invitación</strong> en el menú principal. Regenerar este código crea un nuevo enlace e invalida los enlaces anteriores.",
"general_tab.codeTitle": "Código de Invitación",
"general_tab.dirContact": "Contácta a un administrador del sistema para habilitar el directorio de equipos en la página principal.",
"general_tab.dirDisabled": "El directorio de Equipos ha sido deshabilitado. Por favor solicita a un Administrador de Sistema que habilite la opción de Directorio de Equipos en la Consola del Sistema.",
diff --git a/webapp/i18n/pt.json b/webapp/i18n/pt.json
index ef6514516..65b3689f5 100644
--- a/webapp/i18n/pt.json
+++ b/webapp/i18n/pt.json
@@ -893,7 +893,7 @@
"find_team.submitError": "Por favor entre um endereço de e-mail válido",
"general_tab.chooseName": "Por favor escolha um novo nome para sua equipe",
"general_tab.codeDesc": "Clique 'Edit' para re-gerar o Código de Convite.",
- "general_tab.codeLongDesc": "O Código de convite é usado como parte da URL no link de convite da equipe criado por **Obter Link de Convite de Equipe** no menu principal. Re-gerar cria um novo link de convite de equipe e invalida os link anteriores.",
+ "general_tab.codeLongDesc": "O Código de convite é usado como parte da URL no link de convite da equipe criado por <strong>Obter Link de Convite de Equipe</strong> no menu principal. Re-gerar cria um novo link de convite de equipe e invalida os link anteriores.",
"general_tab.codeTitle": "Código de Convite",
"general_tab.dirContact": "Contate o seu administrador do sistema para ativar o diretório de equipe na página inicial do sistema.",
"general_tab.dirDisabled": "Diretório de equipe foi desativado. Por favor peça a um Administrador de Sistema para ativar o Diretório de Equipe nas configurações do Console do Sistema.",
diff --git a/webapp/sass/components/_scrollbar.scss b/webapp/sass/components/_scrollbar.scss
index b6ec4f22f..b868c0bf0 100644
--- a/webapp/sass/components/_scrollbar.scss
+++ b/webapp/sass/components/_scrollbar.scss
@@ -29,3 +29,11 @@ body {
@include border-radius(2px);
@include alpha-property(background-color, $black, .5);
}
+
+.scrollbar--view {
+ -ms-overflow-style: none;
+
+ .browser--ie & {
+ margin: 0 !important;
+ }
+} \ No newline at end of file
diff --git a/webapp/sass/layout/_markdown.scss b/webapp/sass/layout/_markdown.scss
index cb29aa20e..9bac332d6 100644
--- a/webapp/sass/layout/_markdown.scss
+++ b/webapp/sass/layout/_markdown.scss
@@ -55,18 +55,14 @@
.post-code__language {
@include opacity(0);
- @include translate3d(0, 0, 0);
+ @include transition(opacity, .6s);
background: #21586d;
- border-radius: 0 .25em;
+ border-radius: 0 0 0 2px;
color: $white;
padding: 4px 10px 5px;
position: absolute;
right: 0;
top: 0;
- -webkit-transition: opacity 0.6s;
- -moz-transition: opacity 0.6s;
- -o-transition: opacity 0.6s;
- transition: opacity 0.6s;
z-index: 5;
}
diff --git a/webapp/sass/layout/_post.scss b/webapp/sass/layout/_post.scss
index bfefd08ee..6cffb3966 100644
--- a/webapp/sass/layout/_post.scss
+++ b/webapp/sass/layout/_post.scss
@@ -600,6 +600,12 @@ body.ios {
}
}
+ .post__img {
+ img {
+ display: none;
+ }
+ }
+
.post__header {
height: 0;
margin: 0;
@@ -619,9 +625,11 @@ body.ios {
display: none;
}
- .post__img {
- img {
- display: none;
+ &.same--user {
+ .post__img {
+ img {
+ display: none;
+ }
}
}
}
@@ -718,11 +726,11 @@ body.ios {
}
.post__img {
- width: 46px;
+ width: 42px;
svg {
- height: 36px;
- width: 36px;
+ height: 32px;
+ width: 32px;
}
path {
@@ -731,9 +739,9 @@ body.ios {
img {
@include border-radius(50px);
- height: 36px;
+ height: 32px;
vertical-align: inherit;
- width: 36px;
+ width: 32px;
}
}
diff --git a/webapp/sass/layout/_sidebar-left.scss b/webapp/sass/layout/_sidebar-left.scss
index 7ac1fee75..cc8f13730 100644
--- a/webapp/sass/layout/_sidebar-left.scss
+++ b/webapp/sass/layout/_sidebar-left.scss
@@ -40,7 +40,7 @@
}
.dropdown-menu {
- max-height: 400px;
+ max-height: 80vh;
max-width: 200px;
overflow-x: hidden;
overflow-y: auto;
@@ -140,6 +140,12 @@
text-transform: uppercase;
}
+ .divider {
+ & + .divider {
+ display: none;
+ }
+ }
+
> a {
border-radius: 0;
line-height: 1.5;
diff --git a/webapp/sass/responsive/_mobile.scss b/webapp/sass/responsive/_mobile.scss
index 9af77d4f1..c7d094c67 100644
--- a/webapp/sass/responsive/_mobile.scss
+++ b/webapp/sass/responsive/_mobile.scss
@@ -1,6 +1,12 @@
@charset 'UTF-8';
@media screen and (max-width: 768px) {
+ .post-code__language {
+ @include opacity(.6);
+ @include transition(none);
+ display: block;
+ }
+
.backstage-filters {
display: block;
@@ -1024,3 +1030,11 @@
}
}
}
+
+@media screen and (max-width: 320px) {
+ .tip-overlay {
+ &.tip-overlay--sidebar {
+ min-height: 440px;
+ }
+ }
+}
diff --git a/webapp/sass/routes/_settings.scss b/webapp/sass/routes/_settings.scss
index 1551e5f4d..6986959b2 100644
--- a/webapp/sass/routes/_settings.scss
+++ b/webapp/sass/routes/_settings.scss
@@ -146,10 +146,10 @@
@include appearance(none);
appearance: none;
padding-right: 25px;
+ }
- &::ms-expand {
- display: none;
- }
+ select::ms-expand {
+ display: none;
}
&:before {
diff --git a/webapp/sass/routes/_signup.scss b/webapp/sass/routes/_signup.scss
index 08bd0d12d..d3fe0363f 100644
--- a/webapp/sass/routes/_signup.scss
+++ b/webapp/sass/routes/_signup.scss
@@ -26,6 +26,10 @@
@include flex(1.3 0 0);
padding-right: 80px;
+ img {
+ max-width: 450px;
+ }
+
p {
color: lighten($black, 50%);
}
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index e5d927ec1..be858c554 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -305,7 +305,7 @@ export default {
sidebarTextHoverBg: '#e6f2fa',
sidebarTextActiveBorder: '#378FD2',
sidebarTextActiveColor: '#111111',
- sidebarHeaderBg: '#2389d7',
+ sidebarHeaderBg: '#3481B9',
sidebarHeaderTextColor: '#ffffff',
onlineIndicator: '#7DBE00',
awayIndicator: '#DCBD4E',
@@ -315,7 +315,7 @@ export default {
centerChannelColor: '#333333',
newMessageSeparator: '#FF8800',
linkColor: '#2389d7',
- buttonBg: '#2389d7',
+ buttonBg: '#23A2FF',
buttonColor: '#FFFFFF',
mentionHighlightBg: '#fff2bb',
mentionHighlightLink: '#2f81b7',