help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
clean up calendar module
clean up calendar module
5 months 2 weeks ago - 5 months 2 weeks ago
Greetings!
I have spent a few hours trying to rreverse-engineer the calendar module so I have nice square cells in the table.
In mod_jem_cal.css remove everything that affects cell size:
width: 21px;
height: 20px;
border: 2px solid transparent; /* to get always same cell size */
Remove all padding except the general td padding rule.
.eventcalq table.mod_jemcalq_calendar td {
padding: var(--spacing-small); /* 5px */
margin: 0;
}
Since there seems to be some hard-coded nbsp; generated by the .php, like
for instance, I used js to remove all of them.
(generated by CODY AI)
Then I end up with nice clean and square cells.
Just a suggestion.
I have spent a few hours trying to rreverse-engineer the calendar module so I have nice square cells in the table.
In mod_jem_cal.css remove everything that affects cell size:
width: 21px;
height: 20px;
border: 2px solid transparent; /* to get always same cell size */
Remove all padding except the general td padding rule.
.eventcalq table.mod_jemcalq_calendar td {
padding: var(--spacing-small); /* 5px */
margin: 0;
}
Since there seems to be some hard-coded nbsp; generated by the .php, like
Code:
<a href="/component/jem/event/87:ergonomie-workshop">nbsp;nbsp;4</a>
(generated by CODY AI)
Code:
document.addEventListener("DOMContentLoaded", function() {
// Select all elements within the '.eventcalq td' container
var elements = document.querySelectorAll('.eventcalq td *');
elements.forEach(function(element) {
// Replace with an empty string and then trim any leading spaces
element.innerHTML = element.innerHTML.replace(/ /g, '').trim();
});
});
Then I end up with nice clean and square cells.
Just a suggestion.
Last edit: 5 months 2 weeks ago by marq_104. Reason: won't show as text OR code:(
Please Log in or Create an account to join the conversation.
Re: clean up calendar module
5 months 2 weeks ago - 5 months 2 weeks ago
Thank you, I will try to look into it. I hope, will understand it, I am not an AI
😉
😉
Last edit: 5 months 2 weeks ago by jojo12.
Please Log in or Create an account to join the conversation.
Re: clean up calendar module
5 months 2 weeks ago
Just do search/replace or delete from mod_jem_cal.css and run the js script.
I already did the AI for you:)
I already did the AI for you:)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Re: clean up calendar module
5 months 1 week ago
Sorry our cat has an urgence. I will look later.
Please Log in or Create an account to join the conversation.
Time to create page: 0.778 seconds