Fix hover logo not showing for drive & apps

This commit is contained in:
DianaXWiki 2025-09-03 16:42:10 +03:00
parent 90b5c41a39
commit 4aa260e9c3
2 changed files with 10 additions and 1 deletions

View File

@ -838,11 +838,16 @@
cursor: pointer;
display: inline-flex;
text-decoration: none;
position: absolute;
height: auto;
padding: 10px;
color: @toolbar-bg-color;
color: var(--toolbar-bg-color);
border-radius: @variables_radius;
width: 3rem;
height: 3rem;
padding: 0;
line-height: 0;
svg {
height: 3rem;
width: 3rem;
@ -865,6 +870,9 @@
// width: 100%;
// }
}
a.cp-toolbar-link-logo > svg:nth-of-type(2){ display: none; }
a.cp-toolbar-link-logo:hover > svg:nth-of-type(1){ display: none; }
a.cp-toolbar-link-logo:hover > svg:nth-of-type(2){ display: block; }
}
.cp-toolbar-user {
height: @toolbar_top-height;

View File

@ -900,7 +900,8 @@ MessengerUI, Messages, Pages, PadTypes, Lucide, Icons) {
'class': "cp-toolbar-link-logo",
'role': 'button',
'aria-label': buttonTitle
}).append(UI.getIcon(privateData.app));
}).append(UI.getIcon(privateData.app)).append(Icons.get(toMain ? 'homepage' : 'drive')); //append both icons
Lucide.createIcons();
var onClick = function (e) {
e.preventDefault();