Separate song info box and queue list
authorSuperBFG7 <daniel@despite.ch>
Thu, 17 Jun 2021 06:53:22 +0000 (08:53 +0200)
committerSuperBFG7 <daniel@despite.ch>
Thu, 17 Jun 2021 06:53:22 +0000 (08:53 +0200)
Fix position of song info box and control buttons (don't scroll out of screen)

htdocs/css/mpd.css
htdocs/index.html

index c1e9d46..21fe414 100644 (file)
@@ -27,7 +27,6 @@ button {
 
 #breadcrump {
   display: block;
-
   overflow: auto;
   white-space: nowrap;
 }
@@ -165,3 +164,8 @@ button {
   text-decoration: none;
   color: black;
 }
+
+.sticky {
+  position: sticky;
+  top: 55px;
+}
index d9825ca..0fed0d4 100644 (file)
         <div class="col-md-10 col-xs-12">
           <div class="notifications top-right"></div>
 
-          <div class="panel panel-primary">
+          <div class="panel panel-primary sticky">
             <!-- Default panel contents -->
             <div class="panel-heading">
               <b id="panel-heading">Queue</b>
 
               <div id="progressbar"></div>
             </div>
-            <!-- /.panel-body -->
-
+          </div>
+          <!-- /.panel -->
+          <!-- /.panel-body -->
+          <div class="panel panel-primary">
             <ol id="breadcrump" class="breadcrumb"></ol>
 
             <div class="col-md-12" id="filter"></div>
                   <th>Album</th>
                   <th>Title</th>
                   <th>Length</th>
-                  <th></th>
+                  <th><div style="width: 15px"></div></th>
                 </tr>
               </thead>
               <tbody></tbody>
         </div>
         <!-- /.col-md-10 -->
 
-        <div class="col-md-2 col-xs-12">
+        <div class="col-md-2 col-xs-12 sticky">
           <div class="btn-toolbar">
             <div
               class="btn-group-vertical btn-block btn-group-lg"