Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
MM-12150 - Updating x icon and plugins (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
asaadmahmood authored and jwilander committed Oct 5, 2018
1 parent 5cde6ac commit 2d36024
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 157 deletions.
2 changes: 1 addition & 1 deletion components/channel_header/channel_header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default class ChannelHeader extends React.Component {
>
<div
id='webrtc-btn'
className={'webrtc__button ' + circleClass}
className={'webrtc__button hidden-xs ' + circleClass}
>
{'WebRTC'}
</div>
Expand Down
18 changes: 8 additions & 10 deletions components/navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default class Navbar extends React.Component {
return (
<li
role='presentation'
className='webrtc__option'
className='webrtc__option visible-xs-block'
>
<button
role='menuitem'
Expand Down Expand Up @@ -334,7 +334,7 @@ export default class Navbar extends React.Component {
}

return (
<div className={'pull-right description navbar-right__icon webrtc__button ' + circleClass}>
<div className={'pull-right description navbar-right__icon webrtc__button hidden-xs ' + circleClass}>
<a onClick={this.initWebrtc}>
{'WebRTC'}
</a>
Expand Down Expand Up @@ -732,10 +732,12 @@ export default class Navbar extends React.Component {
{deleteChannelOption}
{leaveChannelOption}
{toggleFavoriteOption}
<MobileChannelHeaderPlug
channel={channel}
isDropdown={true}
/>
<li className='dropdown-item__plugin'>
<MobileChannelHeaderPlug
channel={channel}
isDropdown={false}
/>
</li>
<div className='close visible-xs-block'>
{'×'}
</div>
Expand Down Expand Up @@ -973,10 +975,6 @@ export default class Navbar extends React.Component {
isReadOnly={this.props.isReadOnly}
/>
{searchButton}
<MobileChannelHeaderPlug
channel={channel}
isDropdown={false}
/>
{this.createRhsButton(currentId)}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class MobileChannelHeaderPlug extends React.PureComponent {
createButton(plug) {
return (
<button
className='navbar-toggle navbar-right__icon pull-right'
className='navbar-toggle navbar-right__icon'
onClick={() => this.fireAction(plug)}
>
<span className='icon navbar-plugin-button'>
Expand Down
9 changes: 9 additions & 0 deletions sass/components/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
z-index: 2500;
}

.dropdown-item__plugin {
display: flex;
justify-content: center;

&:empty {
display: none;
}
}

.fa {
@include opacity(.6);
margin-right: 5px;
Expand Down
13 changes: 13 additions & 0 deletions sass/layout/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
display: flex;
}

.browser--ie & {
.navbar-default {
.navbar-brand {
overflow: visible;
padding: 1px;

.heading {
max-width: 100px;
}
}
}
}

.navbar-default {
background: $primary-color;
border: none;
Expand Down
20 changes: 7 additions & 13 deletions sass/responsive/_mobile.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
@charset 'UTF-8';

@media screen and (max-width: 768px) {
.webrtc__option {
.disable-links {
@include opacity(.5);
pointer-events: none;
}
}

.textarea-wrapper {
.help__text {
display: none;
Expand Down Expand Up @@ -1694,19 +1701,6 @@
}

@media screen and (max-width: 480px) {
.webrtc__button {
display: none !important;
}

.webrtc__option {
display: block;

.disable-links {
@include opacity(.5);
pointer-events: none;
}
}

#user-profile-popover {
left: 50px !important;
}
Expand Down
Loading

0 comments on commit 2d36024

Please sign in to comment.