Skip to content

Commit

Permalink
Merge pull request #7 from dmtrKovalenko/Fix-ui-bugs
Browse files Browse the repository at this point in the history
Fixed not building. incorrect resizing on small devices
  • Loading branch information
dmtrKovalenko committed Nov 10, 2016
2 parents 35f2627 + 401ef4d commit 599b560
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion App/content/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: 300px;
}

@media(max-width:650px){
@media(min-width:400px) and (max-width:650px){
.track-card-container{
margin-bottom: 150px;
}
Expand Down
31 changes: 27 additions & 4 deletions App/content/css/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,41 @@

.title.flex-container{
order: 2;
max-width: 45%;
max-width: 30%;
}

.slider.flex-container{
order:3;
width: 60%;
margin: 0 auto;
}

.controls.flex-container{
order:4;
margin-left: auto;
}

@media(max-width:400px){
.control-button{
margin-right: 5px;
}
}

@media(max-width:450px){
.artwork.flex-container{
display: none;
margin-left: 5px;
}
}

@media(max-width:550px){
.control-button{
margin-right: 10px !important;
margin-right: 10px;
}
.controls.flex-container{
min-width: 150px;
min-width: 30%;
}
.title.flex-container{
max-width: 50%;
}
}

Expand All @@ -64,6 +79,14 @@
.slider.flex-container{
min-width: 400px;
}
.controls.flex-container{
min-width: 170px;
}

.flex-container{
margin-left: 5px;
margin-right: 5px;
}
}

a.player-song-title, a.player-user-name{
Expand Down
2 changes: 1 addition & 1 deletion App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</head>
<body>
<div id="app" />
<script type="text/javascript" src="../Build/bundle.js" charset="utf-8"></script>
<script type="text/javascript" src="bundle.js" charset="utf-8"></script>
</html>
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"webpack": "^1.13.3"
},
"devDependencies": {
"babel-core": "^6.18.2",
"babel-loader": "^6.2.7",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"babel-preset-react-hmre": "^1.1.1",
"css-loader": "^0.25.0",
"react-hot-loader": "^3.0.0-beta.6",
Expand Down
6 changes: 1 addition & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ var config = {
'./App/index.jsx'],
output: {
path: BUILD_DIR,
filename: 'bundle.js',
publicPath: BUILD_DIR
filename: 'bundle.js'
},
module : {
loaders : [
Expand All @@ -31,9 +30,6 @@ var config = {
},
]
},
resolve: {
root: path.resolve('App'),
},
plugins:[
new webpack.HotModuleReplacementPlugin(),
],
Expand Down

0 comments on commit 599b560

Please sign in to comment.