@crazycells said in CSS code customization for the link preview plugin:
does OGProxy show the pdf previews as well?
Not yet, but it could with a bit of additional code.
@DownPW Can you let me know if you used the same code for the footer as what is here ? I think this is the case, but want to check. There needs to be some modifications to this code to support the footer toggle.
Updated position of collapse/expand so it’s on the left for a more natural feel
Very great
@phenomlab said in Bottom footer navbar button extend:
Can you let me know if you used the same code for the footer as what is here ?
yes Mark, with minor adjustement.
/admin/extend/widgets
and locate the “Global Footer” widget<div id="console-nav-tab"><i class="fa-solid fa-angles-left"></i></div>
div#console-nav-tab {
position: fixed;
bottom: 0px;
z-index: 900;
height: 30px;
left: 0px;
}
div#console-nav-tab i {
font-size: 16px;
margin-left: 10px;
line-height: 2.0 !important;
}
.toBottom {
bottom: 0px !important;
}
Note, that you probably need to modify the existing CSS ID floatleft
to accommodate the additional DIV and icon. For example
#floatleft {
float: left;
padding-left: 30px; /*additional left padding to support additional DIV and icon */
font-size: 80%;
line-height: 2.0;
font-weight: 600;
display: flex;
}
/admin/appearance/customise#custom-js
and add this block of code (bottom is fine, or wherever you want to place it)$(document).ready(function() {
$(window).on('action:ajaxify.end', function(data) {
var getState = localStorage.getItem("footer");
if (getState === "hidden") {
$("#console-nav-footer").hide();
$("#console-nav-tab i").addClass("fa-solid fa-angles-right");
$('.pagination-block').addClass("toBottom");
} else {
$("#console-nav-tab i").addClass("fa-solid fa-angles-left");
$('.pagination-block').removeClass("toBottom");
}
$("#console-nav-tab").click(function() {
$("#console-nav-footer").toggle(250, function() {
if ($("#console-nav-footer").is(":hidden")) {
localStorage.setItem("footer", "hidden");
$("#console-nav-tab i").addClass("fa-solid fa-angles-right");
$('.pagination-block').addClass("toBottom");
} else {
localStorage.setItem("footer", "shown");
$("#console-nav-tab i").addClass("fa-solid fa-angles-left");
$('.pagination-block').removeClass("toBottom");
}
});
$("i", this).toggleClass("fa-solid fa-angles-left fa-solid fa-angles-right");
});
});
});
why deleted ?
@DownPW Because it’s not finished. I forgot the session state…
ha oki lol
another request but if it’s not possible, it does not matter
Can we imagine when the footerbar is reduced, we descend the pagination block automatically ?
it would be cleaner. what do you think ?
@DownPW that should be possible, yes. Leave it with me
@DownPW instructions restored
Fixed:
Let me know how you get on.
Note that there may be some cosmetic issues on mobile devices, which I will work through if necessary. In some cases it’s actually better to hide the footer altogether on mobile because of the screen estate.
Here’s what it looks like
Very good job Mark
–> I may have done something wrong but everything is ok except the pagination block which does not go down automatically.
An idea ?
@DownPW not sure without checking, but I’ll have a look later
@DownPW great ! Post a video so we can see how it looks outside of Sudonix
@phenomlab What tools you use ?
@DownPW one of the many freely available screen recorders for chrome (extensions). Nothing fancy.
@phenomlab said in Bottom footer navbar button extend:
@DownPW great ! Post a video so we can see how it looks outside of Sudonix
@DownPW Looks great !
@DownPW said in Bottom footer navbar button extend:
Oh my god, it’s beautiful mark
I liked this design so much, I’ve implemented it here. I intend to do a lot more with the footer in due course, so hiding it makes a lot of sense. Thanks @DownPW for the idea and initial concept