UI Updates for multiple tickets

This commit is contained in:
Asaad Mahmood
2015-09-16 20:32:10 +05:00
parent d4887cef03
commit 28b61e6437
9 changed files with 33 additions and 7 deletions

View File

@@ -300,7 +300,7 @@ export default class EmailSettings extends React.Component {
type='submit'
className='btn btn-primary'
>
{'Submit'}
{'Save'}
</button>
</div>
</div>

View File

@@ -172,7 +172,7 @@ export default class Jobs extends React.Component {
type='submit'
className='btn btn-primary'
>
{'Submit'}
{'Save'}
</button>
</div>
</div>

View File

@@ -159,7 +159,7 @@ ChangeUrlModal.defaultProps = {
title: 'Change URL',
desciption: '',
urlLabel: 'URL',
submitButtonText: 'Submit',
submitButtonText: 'Save',
currentURL: '',
serverError: ''
};

View File

@@ -75,6 +75,9 @@ export default class SearchBar extends React.Component {
PostStore.emitSearchTermChange(false);
this.setState({searchTerm: term});
}
handleMouseInput(e) {
e.preventDefault();
}
handleUserFocus(e) {
e.target.select();
$('.search-bar__container').addClass('focused');
@@ -140,6 +143,7 @@ export default class SearchBar extends React.Component {
value={this.state.searchTerm}
onFocus={this.handleUserFocus}
onChange={this.handleUserInput}
onMouseUp={this.handleMouseInput}
/>
{isSearching}
</form>

View File

@@ -26,7 +26,7 @@ export default class SettingItemMax extends React.Component {
href='#'
onClick={this.props.submit}
>
Submit
Save
</a>
);
}

View File

@@ -348,6 +348,11 @@ export default class Sidebar extends React.Component {
);
}
var badgeClass;
if (msgCount > 0) {
badgeClass = 'has-badge';
}
// set up status icon for direct message channels
var status = null;
if (channel.type === 'D') {
@@ -408,7 +413,7 @@ export default class Sidebar extends React.Component {
className={linkClass}
>
<a
className={'sidebar-channel ' + titleClass}
className={'sidebar-channel ' + titleClass + ' ' + badgeClass}
href={href}
onClick={handleClick}
>

View File

@@ -133,7 +133,7 @@
.navbar-right {
font-size: 0.85em;
position: absolute;
top: 10px;
top: 11px;
right: 22px;
z-index: 5;
.dropdown-toggle {
@@ -171,7 +171,6 @@
}
.team__name, .user__name {
display: block;
line-height: 18px;
font-weight: 600;
font-size: 16px;
max-width: 80%;
@@ -180,9 +179,14 @@
text-overflow: ellipsis;
text-decoration: none;
}
.team__name {
line-height: 22px;
margin-top: -2px;
}
.user__name {
@include single-transition(all, 0.1s, linear);
font-size: 14px;
line-height: 18px;
font-weight: 400;
color: #eee;
color: rgba(#fff, 0.8);

View File

@@ -584,6 +584,9 @@
&.move--right {
@include translate3d(0, 0, 0);
}
.badge {
top: 13px;
}
> div {
padding-bottom: 105px;
}

View File

@@ -30,6 +30,9 @@
}
.badge {
background-color: $primary-color;
position: absolute;
right: 10px;
top: 5px;
}
.status {
position:relative;
@@ -90,6 +93,12 @@
line-height: 1.5;
border-radius: 0;
color: #999;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&.has-badge {
padding-right: 30px;
}
&.nav-more {
text-decoration: underline;
}
@@ -104,6 +113,7 @@
&.active {
a, a:hover, a:focus {
color: #111;
padding-right: 10px;
background-color: #e1e1e1;
border-radius: 0;
font-weight: 400;