Browse Source

Fix large tags in sidebar overflowing

spaghetti 7 years ago
parent
commit
a2f248ec65
3 changed files with 12 additions and 7 deletions
  1. 1
    2
      sections/torrents/details.php
  2. 0
    5
      sections/upload/upload_handle.php
  3. 11
    0
      static/styles/global.css

+ 1
- 2
sections/torrents/details.php View File

@@ -304,7 +304,7 @@ if (count($Tags) > 0) {
304 304
 
305 305
 ?>
306 306
         <li>
307
-          <a href="torrents.php?taglist=<?=$Tag['name']?>" class="float_left <?=display_str($Tag['class'])?>" ><?=display_str($Tag['display'])?></a>
307
+          <a href="torrents.php?taglist=<?=$Tag['name']?>" class="<?=display_str($Tag['class'])?>" ><?=display_str($Tag['display'])?></a>
308 308
           <div class="edit_tags_votes float_right">
309 309
 <?    if (check_perms('users_warn')) { ?>
310 310
           <a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag" class="brackets tooltip view_tag_user">U</a>
@@ -313,7 +313,6 @@ if (count($Tags) > 0) {
313 313
           <span class="remove remove_tag"><a href="torrents.php?action=delete_tag&amp;groupid=<?=$GroupID?>&amp;tagid=<?=$Tag['id']?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets tooltip" title="Remove tag">X</a></span>
314 314
 <?    } ?>
315 315
           </div>
316
-          <br>
317 316
         </li>
318 317
 <?
319 318
   }

+ 0
- 5
sections/upload/upload_handle.php View File

@@ -190,10 +190,6 @@ if (!is_uploaded_file($TorrentName) || !filesize($TorrentName)) {
190 190
   $Err = "You seem to have put something other than a torrent file into the upload field. (".$File['name'].").";
191 191
 }
192 192
 
193
-/*if ($Type == 'Music') {
194
-  include(SERVER_ROOT.'/sections/upload/get_extra_torrents.php');
195
-}*/
196
-
197 193
 //Multiple artists!
198 194
 
199 195
 $LogName = '';
@@ -290,7 +286,6 @@ $NumFiles = count($FileList);
290 286
 $TmpFileList = [];
291 287
 $TooLongPaths = [];
292 288
 $DirName = (isset($Tor->Dec['info']['files']) ? Format::make_utf8($Tor->get_name()) : '');
293
-$IgnoredLogFileNames = array('audiochecker.log', 'sox.log');
294 289
 check_name($DirName); // check the folder name against the blacklist
295 290
 foreach ($FileList as $File) {
296 291
   list($Size, $Name) = $File;

+ 11
- 0
static/styles/global.css View File

@@ -931,6 +931,17 @@ input[type="search"] {
931 931
   font-weight: 100;
932 932
 }
933 933
 
934
+.sidebar .box_tags > ul.stats > li {
935
+  display: flex;
936
+  justify-content: space-between;
937
+}
938
+.sidebar .box_tags > ul.stats > li > a {
939
+  word-break: break-all;
940
+}
941
+.edit_tags_votes {
942
+  display: flex;
943
+}
944
+
934 945
 #publickey {
935 946
   width: initial;
936 947
   font-family: monospace;

Loading…
Cancel
Save