]> source.dussan.org Git - nextcloud-server.git/commitdiff
Files: fix positioning of Trash button and upload progress bar
authorRobin Appelman <icewind@owncloud.com>
Sun, 3 Feb 2013 16:12:57 +0000 (17:12 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 4 Feb 2013 00:05:59 +0000 (01:05 +0100)
apps/files/css/files.css
apps/files/templates/index.php

index e18836a73892d08595b76fd9db4f50941ee359e2..0a12439c3598c5f110b70f1b1c8382c5a2b529fc 100644 (file)
@@ -23,7 +23,7 @@
 #new>ul>li>p { cursor:pointer; }
 #new>ul>li>form>input { padding:0.3em; margin:-0.3em; }
 
-#trash { height:17px;  margin:0 0 0 1em; z-index:1010; position:absolute; right:13.5em; } 
+#trash { height:17px;  margin:0.3em 0.3em 0.3em 1em; z-index:1010; float: right; }
 
 #upload { 
        height:27px; padding:0; margin-left:0.2em; overflow:hidden;
@@ -44,7 +44,7 @@
        z-index:20; position:relative; cursor:pointer; overflow:hidden;
 }
 
-#uploadprogresswrapper { position:absolute; right:13.5em; top:0em; }
+#uploadprogresswrapper { float: right; position: relative; }
 #uploadprogresswrapper #uploadprogressbar { position:relative; display:inline-block; width:10em; height:1.5em; top:.4em; }
 
 /* FILE TABLE */
index 2d4ed9ab2d9b33012db04917c041885caa3ab7e6..9c12067ae950827e76ec177825c792c2110df0f6 100644 (file)
                                        <a href="#" class="svg" onclick="return false;"></a>
                                </form>
                        </div>
-                       <?php if ($_['trash'] ): ?>
+               </div>
+               <?php if ($_['trash'] ): ?>
                        <div id="trash" class="button">
                                <a><?php echo $l->t('Trash');?></a>
                        </div>
-                       <?php endif; ?>
-                       <div id="uploadprogresswrapper">
-                               <div id="uploadprogressbar"></div>
-                               <input type="button" class="stop" style="display:none"
-                                       value="<?php echo $l->t('Cancel upload');?>"
-                                       onclick="javascript:Files.cancelUploads();"
+               <?php endif; ?>
+               <div id="uploadprogresswrapper">
+                       <div id="uploadprogressbar"></div>
+                       <input type="button" class="stop" style="display:none"
+                                  value="<?php echo $l->t('Cancel upload');?>"
+                                  onclick="javascript:Files.cancelUploads();"
                                />
-                       </div>
                </div>
                <div id="file_action_panel"></div>
        <?php else:?>