瀏覽代碼

Merge pull request #1323 from PrivateBin/bootstrap5-fileupload

bootstrap 5 attachment dropdown sizing
El RIDO 2 年之前
父節點
當前提交
55d30ce9bd
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      css/bootstrap5/privatebin.css
  2. 1 1
      tpl/bootstrap5.php

+ 4 - 0
css/bootstrap5/privatebin.css

@@ -56,6 +56,10 @@
 	transition: background-color 0.75s ease-out;
 	transition: background-color 0.75s ease-out;
 }
 }
 
 
+.dropdown-menu {
+	--bs-dropdown-min-width: 23rem;
+}
+
 li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
 li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
 	list-style-type: decimal !important;
 	list-style-type: decimal !important;
 }
 }

+ 1 - 1
tpl/bootstrap5.php

@@ -258,7 +258,7 @@ if ($FILEUPLOAD) :
 ?>
 ?>
 						<li id="attach" class="nav-item hidden dropdown me-2">
 						<li id="attach" class="nav-item hidden dropdown me-2">
 							<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false"><?php echo I18n::_('Attach a file'); ?></a>
 							<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false"><?php echo I18n::_('Attach a file'); ?></a>
-							<ul class="dropdown-menu">
+							<ul class="dropdown-menu px-2">
 								<li id="filewrap">
 								<li id="filewrap">
 									<div>
 									<div>
 										<input type="file" id="file" name="file" class="form-control" />
 										<input type="file" id="file" name="file" class="form-control" />