Skip to content

Commit 1ef862b

Browse files
Merge pull request #63 from clpetersonucf/issue/55-improved-widget-draggability
Improves card dragging at the bottom of the playable area
2 parents 483ec17 + ed2e644 commit 1ef862b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/player.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
<!-- MAIN WIDGET SCRIPT -->
2222
<script src="player.js"></script>
2323
</head>
24-
<body ng-app="SortItOutEngine" ng-controller="SortItOutEngineCtrl" ng-cloak ng-style="{'background-image': 'url(' + backgroundImage + ')'}">
24+
<body id="app-body" ng-app="SortItOutEngine" ng-controller="SortItOutEngineCtrl" ng-cloak ng-style="{
25+
'background-image': 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.33) 100%), url('+ backgroundImage + ')'
26+
}">
2527
<div id="content"
2628
hm-panmove="panMove(standardizeEvent($event), false)"
2729
hm-panend="mouseUp(standardizeEvent($event), false)"
@@ -175,7 +177,6 @@ <h1 id="title">{{title}}</h1>
175177
</div>
176178

177179
<div id="dock-main" class="dock" tabindex="-1">
178-
<div id="dock-main-background" class="dock" ng-click="hideFolderPreview()" tabindex="-1"></div>
179180
<div class="folder"
180181
ng-class="{opened: folderPreviewIndex == $index}"
181182
ng-repeat="folder in folders"

src/player.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ body {
77
background-position: center center;
88
height: 100vh;
99
font-family: "Lato";
10+
11+
overflow: hidden;
1012
}
1113

1214
.screenreader-assist {
@@ -283,7 +285,7 @@ button.cancel-submit-button {
283285
.dock {
284286
position: absolute;
285287
height: 125px;
286-
bottom: 0;
288+
bottom: -125px;
287289
left: 0;
288290
right: 0;
289291
display: flex;
@@ -294,6 +296,7 @@ button.cancel-submit-button {
294296
}
295297

296298
.folder {
299+
top: -125px;
297300
height: 100%;
298301
width: 150px;
299302
position: relative;

0 commit comments

Comments
 (0)