mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
Update header.html
This commit is contained in:
parent
459c594fbf
commit
d4c8bf0af4
@ -1,10 +1,11 @@
|
||||
<script type="text/discourse-plugin" version="0.8.20">
|
||||
api.decorateWidget("home-logo:after", helper => {
|
||||
const titleVisible = helper.attrs.minimized;
|
||||
console.log(titleVisible);
|
||||
if (titleVisible) {
|
||||
$(".headerLink:not(.keep)").fadeOut("fast");
|
||||
$(".headerLink:not(.keep)").fadeOut('700');
|
||||
} else {
|
||||
$(".headerLink").fadeIn("fast");
|
||||
$(".headerLink").fadeIn('700');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user