Ver código fonte

Display attachments in two columns on the post page

Kays48 12 anos atrás
pai
commit
8ea3129241
2 arquivos alterados com 12 adições e 7 exclusões
  1. 5 5
      Themes/default/Post.template.php
  2. 7 2
      Themes/default/css/index.css

+ 5 - 5
Themes/default/Post.template.php

@@ -402,7 +402,7 @@ function template_main()
 						<dt>
 							', $txt['attached'], ':
 						</dt>
-						<dd class="smalltext">
+						<dd class="smalltext" style="width: 100%;">
 							<input type="hidden" name="attach_del[]" value="0" />
 							', $txt['uncheck_unwatchd_attach'], ':
 						</dd>';
@@ -413,12 +413,12 @@ function template_main()
 							!empty($modSettings['attachmentPostLimit']) || !empty($modSettings['attachmentSizeLimit']) ? sprintf($txt['attach_kb'], comma_format(round(max($attachment['size'], 1028) / 1028), 0)) : '', '</label>
 						</dd>';
 
-		if (!empty($context['files_in_session_warning']))
-			echo '
-						<dd class="smalltext">', $context['files_in_session_warning'], '</dd>';
-
 		echo '
 					</dl>';
+
+		if (!empty($context['files_in_session_warning']))
+			echo '
+					<div class="smalltext">', $context['files_in_session_warning'], '</div>';
 	}
 
 	// Is the user allowed to post any additional ones? If so give them the boxes to do it!

+ 7 - 2
Themes/default/css/index.css

@@ -2010,8 +2010,13 @@ ul.post_options li {
 	padding: 0;
 	padding: 0.5em;
 }
-#postAttachment dd, #postAttachment2 dd {
-	margin: .3em 0 .3em 1em;
+#postAttachment dd {
+	margin: 4px 0 4px 12px;
+	width: 45%;
+	float: left;
+}
+#postAttachment2 dd {
+	margin: 4px 0 4px 12px;
 }
 #postAttachment dt, #postAttachment2 dt {
 	font-weight: bold;