mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
feat(mentions): dedicated toolbar icon sprite
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
@@ -336,7 +336,7 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props =>
|
|||||||
</motion.div>
|
</motion.div>
|
||||||
{ mentionsEnabled &&
|
{ mentionsEnabled &&
|
||||||
<motion.div variants={ itemVariants } className="relative">
|
<motion.div variants={ itemVariants } className="relative">
|
||||||
<ToolbarItemView icon="message" onClick={ () => CreateLinkEvent('mentions/toggle') } className="tb-icon" />
|
<ToolbarItemView icon="mentions" onClick={ () => CreateLinkEvent('mentions/toggle') } className="tb-icon" />
|
||||||
{ (mentionsUnread > 0) &&
|
{ (mentionsUnread > 0) &&
|
||||||
<LayoutItemCountView count={ mentionsUnread } className="absolute -right-2 -top-1" /> }
|
<LayoutItemCountView count={ mentionsUnread } className="absolute -right-2 -top-1" /> }
|
||||||
</motion.div> }
|
</motion.div> }
|
||||||
@@ -432,7 +432,7 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props =>
|
|||||||
</motion.div>
|
</motion.div>
|
||||||
{ mentionsEnabled &&
|
{ mentionsEnabled &&
|
||||||
<motion.div variants={ itemVariants } className="relative">
|
<motion.div variants={ itemVariants } className="relative">
|
||||||
<ToolbarItemView icon="message" onClick={ () => CreateLinkEvent('mentions/toggle') } className="tb-icon" />
|
<ToolbarItemView icon="mentions" onClick={ () => CreateLinkEvent('mentions/toggle') } className="tb-icon" />
|
||||||
{ (mentionsUnread > 0) &&
|
{ (mentionsUnread > 0) &&
|
||||||
<LayoutItemCountView count={ mentionsUnread } className="absolute -right-2 -top-1" /> }
|
<LayoutItemCountView count={ mentionsUnread } className="absolute -right-2 -top-1" /> }
|
||||||
</motion.div> }
|
</motion.div> }
|
||||||
|
|||||||
@@ -229,6 +229,13 @@
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nitro-icon.icon-mentions {
|
||||||
|
background-image: url("@/assets/images/toolbar/icons/mentions.png");
|
||||||
|
background-size: contain;
|
||||||
|
width: 36px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.nitro-icon.icon-wired-tools {
|
.nitro-icon.icon-wired-tools {
|
||||||
background-image: url("@/assets/images/wiredtools/wired_menu.png");
|
background-image: url("@/assets/images/wiredtools/wired_menu.png");
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
|
|||||||
Reference in New Issue
Block a user