Skip to content

Commit

Permalink
Merge pull request #63 from clpetersonucf/issue/55-improved-widget-dr…
Browse files Browse the repository at this point in the history
…aggability

Improves card dragging at the bottom of the playable area
  • Loading branch information
clpetersonucf authored Oct 3, 2024
2 parents 483ec17 + ed2e644 commit 1ef862b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<!-- MAIN WIDGET SCRIPT -->
<script src="player.js"></script>
</head>
<body ng-app="SortItOutEngine" ng-controller="SortItOutEngineCtrl" ng-cloak ng-style="{'background-image': 'url(' + backgroundImage + ')'}">
<body id="app-body" ng-app="SortItOutEngine" ng-controller="SortItOutEngineCtrl" ng-cloak ng-style="{
'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 + ')'
}">
<div id="content"
hm-panmove="panMove(standardizeEvent($event), false)"
hm-panend="mouseUp(standardizeEvent($event), false)"
Expand Down Expand Up @@ -175,7 +177,6 @@ <h1 id="title">{{title}}</h1>
</div>

<div id="dock-main" class="dock" tabindex="-1">
<div id="dock-main-background" class="dock" ng-click="hideFolderPreview()" tabindex="-1"></div>
<div class="folder"
ng-class="{opened: folderPreviewIndex == $index}"
ng-repeat="folder in folders"
Expand Down
5 changes: 4 additions & 1 deletion src/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ body {
background-position: center center;
height: 100vh;
font-family: "Lato";

overflow: hidden;
}

.screenreader-assist {
Expand Down Expand Up @@ -283,7 +285,7 @@ button.cancel-submit-button {
.dock {
position: absolute;
height: 125px;
bottom: 0;
bottom: -125px;
left: 0;
right: 0;
display: flex;
Expand All @@ -294,6 +296,7 @@ button.cancel-submit-button {
}

.folder {
top: -125px;
height: 100%;
width: 150px;
position: relative;
Expand Down

0 comments on commit 1ef862b

Please sign in to comment.