Readme update; Context menu positioning in extremities
This commit is contained in:
26
README.md
26
README.md
@ -3,8 +3,8 @@ Iris
|
||||
|
||||
Iris (previously known as Spotmop) is a Mopidy HTTP client that utilizes Spotify to create an interactive, user-friendly and collaborative music interface. Built and maintained by James Barnsley.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=james%40barnsley%2enz&lc=NZ&item_name=James%20Barnsley¤cy_code=NZD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
|
||||
|
||||
Features
|
||||
@ -20,17 +20,17 @@ Features
|
||||
Screenshots
|
||||
-----------
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
Requirements
|
||||
@ -44,20 +44,20 @@ Requirements
|
||||
Installation
|
||||
--------
|
||||
|
||||
1. Install using pip: `sudo pip install Mopidy-Spotmop`
|
||||
1. Install using pip: `sudo pip install Mopidy-Iris`
|
||||
2. Restart Mopidy server
|
||||
3. Navigate to Mopidy interface (ie http://localhost:6680/spotmop)
|
||||
3. Navigate to Mopidy interface (ie http://localhost:6680/iris)
|
||||
|
||||
Development
|
||||
-----
|
||||
|
||||
1. Clone this repository into a your Apache2 web directory (ie `/var/www/html/`)
|
||||
1. Clone this repository into a your Apache2 web directory (eg `/var/www/html/`)
|
||||
2. Install in develop mode `python setup.py install develop`
|
||||
3. Restart mopidy
|
||||
|
||||
Support
|
||||
-------
|
||||
|
||||
* [Changelog](https://github.com/jaedb/spotmop/releases)
|
||||
* [Issues and requests](https://github.com/jaedb/spotmop/issues)
|
||||
* [Changelog](https://github.com/jaedb/iris/releases)
|
||||
* [Issues and requests](https://github.com/jaedb/iris/issues)
|
||||
|
||||
|
||||
@ -222,6 +222,9 @@ class ContextMenu extends React.Component{
|
||||
className += ' '+this.props.context_menu.trigger
|
||||
}
|
||||
|
||||
if (this.props.context_menu.position_x > (window.innerWidth - 154)) className += ' right-align'
|
||||
if (this.props.context_menu.position_x > (window.innerWidth - 308)) className += ' right-align-submenu'
|
||||
|
||||
return (
|
||||
<div className={className} style={style}>
|
||||
{ this.renderItems(trigger) }
|
||||
|
||||
@ -33,7 +33,7 @@ class VersionManager extends React.Component{
|
||||
return <button className="secondary" onClick={() => this.props.pusherActions.performUpgrade()}>Upgrade to { this.props.pusher.version.latest }</button>
|
||||
}
|
||||
|
||||
return null;
|
||||
return <button className="secondary" disabled>Already up to date</button>
|
||||
}
|
||||
|
||||
render(){
|
||||
|
||||
@ -7,6 +7,15 @@
|
||||
background: $dark_grey;
|
||||
color: #FFFFFF;
|
||||
|
||||
&.right-align {
|
||||
margin-left: -140px;
|
||||
}
|
||||
|
||||
&.right-align-submenu .submenu {
|
||||
left: auto !important;
|
||||
right: 140px !important;
|
||||
}
|
||||
|
||||
.menu-item-wrapper {
|
||||
display: block;
|
||||
position: relative;
|
||||
@ -15,7 +24,7 @@
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
padding: 8px 12px;
|
||||
width: 120px;
|
||||
width: 140px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@ -32,14 +41,14 @@
|
||||
.submenu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 120px;
|
||||
left: 140px;
|
||||
top: 0;
|
||||
max-height: 200px;
|
||||
overflow-y: scroll;
|
||||
background: lighten($dark_grey, 5%);
|
||||
|
||||
.menu-item {
|
||||
width: 150px;
|
||||
width: 140px;
|
||||
&:hover {
|
||||
background: lighten($dark_grey, 10%);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user