mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
fix: too small sortable handle for ACP>Manage>Categories
The handle was initially just the icon, but now it is the icon and the category label itself.
This commit is contained in:
@@ -68,6 +68,10 @@ div.categories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.information {
|
||||||
|
cursor: move;
|
||||||
|
padding-left: 3rem;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -77,15 +81,12 @@ div.categories {
|
|||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 0px;
|
margin-right: 1rem;
|
||||||
cursor: move;
|
|
||||||
.fa {
|
.fa {
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.information {
|
|
||||||
padding-left: 60px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-header {
|
.category-header {
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ define('admin/manage/categories', [
|
|||||||
sortables[parentId] = Sortable.create($('ul[data-cid="' + parentId + '"]')[0], {
|
sortables[parentId] = Sortable.create($('ul[data-cid="' + parentId + '"]')[0], {
|
||||||
group: 'cross-categories',
|
group: 'cross-categories',
|
||||||
animation: 150,
|
animation: 150,
|
||||||
handle: '.icon',
|
handle: '.information',
|
||||||
dataIdAttr: 'data-cid',
|
dataIdAttr: 'data-cid',
|
||||||
ghostClass: 'placeholder',
|
ghostClass: 'placeholder',
|
||||||
onAdd: itemDidAdd,
|
onAdd: itemDidAdd,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<div class="toggle">
|
<div class="toggle">
|
||||||
<i class="fa fa-minus"></i>
|
<i class="fa fa-minus"></i>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="information">
|
||||||
<div class="icon" style="
|
<div class="icon" style="
|
||||||
color: {categories.color};
|
color: {categories.color};
|
||||||
background-color: {categories.bgColor};
|
background-color: {categories.bgColor};
|
||||||
@@ -16,7 +17,6 @@
|
|||||||
">
|
">
|
||||||
<i data-name="icon" value="{categories.icon}" class="fa {categories.icon}"></i>
|
<i data-name="icon" value="{categories.icon}" class="fa {categories.icon}"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="information">
|
|
||||||
<h5 class="category-header">{categories.name}</h5>
|
<h5 class="category-header">{categories.name}</h5>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user