mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-08-06 08:57:38 +00:00
icons in triggers and menus are aligned.
This commit is contained in:
@@ -40,7 +40,8 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i
|
|||||||
const trigger = (groupName)=>{
|
const trigger = (groupName)=>{
|
||||||
if(!customTrigger){
|
if(!customTrigger){
|
||||||
return <>
|
return <>
|
||||||
<span className='menu-name'>{groupName}</span><i className={`caret fas fa-caret-${isSubMenu ? 'right' : 'down'}`}></i>
|
|
||||||
|
<i className={icon}></i><span className='menu-name'>{groupName}</span><i className={`caret fas fa-caret-${isSubMenu ? 'right' : 'down'}`}></i>
|
||||||
</>;
|
</>;
|
||||||
} else {
|
} else {
|
||||||
return customTrigger;
|
return customTrigger;
|
||||||
|
|||||||
@@ -156,28 +156,29 @@
|
|||||||
position : relative;
|
position : relative;
|
||||||
display : flex;
|
display : flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items : center;
|
align-items : center;
|
||||||
min-width : max-content;
|
min-width : max-content;
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.animate(background-color);
|
.animate(background-color);
|
||||||
|
.menu-name {
|
||||||
|
flex: 1;
|
||||||
|
text-align: left;
|
||||||
|
text-box-trim: trim-end;
|
||||||
|
}
|
||||||
i {
|
i {
|
||||||
min-width : 25px;
|
min-width : 25px;
|
||||||
height : 1.2em;
|
height : .85rem;
|
||||||
margin-right : 8px;
|
|
||||||
font-size : 1.2em;
|
font-size : 1.2em;
|
||||||
text-align : center;
|
text-align : center;
|
||||||
|
&:first-child { margin-right: 5px }
|
||||||
&.caret {
|
&.caret {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
&.caret:is(.menu-wrapper .menu-wrapper * ) {
|
&.caret:is(.menu-wrapper .menu-wrapper * ) {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
& ~ i {
|
|
||||||
margin-right : 0;
|
|
||||||
margin-left : 5px;
|
|
||||||
}
|
|
||||||
/* Fonts */
|
/* Fonts */
|
||||||
&.font {
|
&.font {
|
||||||
height : auto;
|
height : auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user