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
 
304
 
305
 ?>
305
 ?>
306
         <li>
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
           <div class="edit_tags_votes float_right">
308
           <div class="edit_tags_votes float_right">
309
 <?    if (check_perms('users_warn')) { ?>
309
 <?    if (check_perms('users_warn')) { ?>
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>
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
           <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>
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
           </div>
315
           </div>
316
-          <br>
317
         </li>
316
         </li>
318
 <?
317
 <?
319
   }
318
   }

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

190
   $Err = "You seem to have put something other than a torrent file into the upload field. (".$File['name'].").";
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
 //Multiple artists!
193
 //Multiple artists!
198
 
194
 
199
 $LogName = '';
195
 $LogName = '';
290
 $TmpFileList = [];
286
 $TmpFileList = [];
291
 $TooLongPaths = [];
287
 $TooLongPaths = [];
292
 $DirName = (isset($Tor->Dec['info']['files']) ? Format::make_utf8($Tor->get_name()) : '');
288
 $DirName = (isset($Tor->Dec['info']['files']) ? Format::make_utf8($Tor->get_name()) : '');
293
-$IgnoredLogFileNames = array('audiochecker.log', 'sox.log');
294
 check_name($DirName); // check the folder name against the blacklist
289
 check_name($DirName); // check the folder name against the blacklist
295
 foreach ($FileList as $File) {
290
 foreach ($FileList as $File) {
296
   list($Size, $Name) = $File;
291
   list($Size, $Name) = $File;

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

931
   font-weight: 100;
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
 #publickey {
945
 #publickey {
935
   width: initial;
946
   width: initial;
936
   font-family: monospace;
947
   font-family: monospace;

Loading…
Cancel
Save