From b00ffa83e7371fa7dd4570130ee8b506943aee01 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 16 Oct 2015 18:06:22 +0500 Subject: Multiple UI Improvements --- web/react/components/more_channels.jsx | 6 +-- web/react/components/more_direct_channels.jsx | 72 +++++++++++++------------- web/react/components/popover_list_members.jsx | 2 +- web/react/components/post_info.jsx | 2 +- web/react/components/sidebar.jsx | 6 +-- web/react/components/user_profile.jsx | 2 +- web/sass-files/sass/partials/_modal.scss | 73 +++++++++++++-------------- web/sass-files/sass/partials/_settings.scss | 7 --- 8 files changed, 82 insertions(+), 88 deletions(-) diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx index a20c5cad5..a0084ad30 100644 --- a/web/react/components/more_channels.jsx +++ b/web/react/components/more_channels.jsx @@ -83,7 +83,7 @@ export default class MoreChannels extends React.Component { moreChannels = ; } else if (channels.length) { moreChannels = ( - +
{channels.map(function cMap(channel, index) { var joinButton; @@ -108,8 +108,8 @@ export default class MoreChannels extends React.Component { return ( + + + ); } @@ -213,7 +211,7 @@ export default class MoreDirectChannels extends React.Component { const userEntries = users.map(this.createRowForUser); if (userEntries.length === 0) { - userEntries.push(
  • {'No users found :('}
  • ); + userEntries.push(
    {'No users found :('}
    ); } let memberString = 'Member'; @@ -232,26 +230,32 @@ export default class MoreDirectChannels extends React.Component { - {'More Direct Messages'} + {'Team Directory'} -
    - - {count} +
    +
    + +
    +
    + {count} +
    +
    +
    +
    -

    {channel.display_name}

    -

    {channel.description}

    +

    {channel.display_name}

    +

    {channel.description}

    {joinButton} diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index 08b64de8b..a599c1872 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -140,12 +140,12 @@ export default class MoreDirectChannels extends React.Component { if (user.nickname) { const separator = fullName ? ' - ' : ''; details.push( - {separator + user.nickname} - +

    ); } @@ -170,28 +170,26 @@ export default class MoreDirectChannels extends React.Component { } return ( -
  • -
    +
  • - -
    -
    +
    {user.username}
    -
    - {details} -
    -
    -
    + {details} +
    {joinButton} - - +
    + + {userEntries} + +
    -