Navigation Button not straight
Hi , I saw an issue in the css of the buttons in your navbar of the calendar.
They are not straight !!
there is two pixels more on the left button than the right one
it seems to be an error with the css align items not working properly
i thinks you can just delete align items from the fc-toolbar class
and add display flex to the today button to have a straight navbar
I cant figure out how to give to the left buttons the 2,4px to have a straight navbar but I'm sure you while find how to fix it
{% block stylesheets %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.css">
<link rel="stylesheet" href="{{ asset('styles/app.css') }}">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
{% endblock %}
{% block javascripts %} <script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
var calendarEl = document.getElementById('calendar-holder');
var calendar = new FullCalendar.Calendar(calendarEl, {
defaultView: 'timeGridWeek',
editable: true,
expandRows: true,
height: 'auto',
eventSources: [
{
url: "{{ path('fc_load_events') }}",
method: "POST",
extraParams: {
filters: JSON.stringify({})
},
failure: () => {
// alert("There was an error while fetching FullCalendar!");
},
},
],
header: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay',
},
plugins: [ 'interaction', 'dayGrid', 'timeGrid' ], // https://fullcalendar.io/docs/plugin-index
timeZone: 'UTC',
minTime: '07:30:00',
maxTime: '20:00:00',
weekends: false,
editable: false,
locale: 'fr'
});
calendar.render();
});
</script>
{% endblock %}
{% block title %}
Accueil
{% endblock %}
{% block body %}
<div class="content">
<div class="calendar">
<div id="calendar-holder"></div>
</div>
<div class="BI">
<div id="carouselExampleIndicators" class="carousel slide">
<div class="carousel-inner">
{% for BI in BIS %}
{% if loop.first %}
<div class="carousel-item active">
<div class="bi">
<img src="{{ BI.path }}" alt="{{ BI.title }}">
<h2>{{ BI.title }}</h2>
<div class="bi-title-underline"></div>
<p>{{ BI.description }}</p>
</div>
</div>
{% else %}
<div class="carousel-item">
<div class="bi">
<img src="{{ BI.path }}" alt="{{ BI.title }}">
<h2>{{ BI.title }}</h2>
<div class="bi-title-underline"></div>
<div class="bi-description">
<p>{{ BI.description }}</p>
</div>
</div>
</div>
{% endif %}
{% endfor %}
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
{% endblock %}
here is my twig and css
body{
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/cir_0668.jpg");
background-size: cover;
background-position: center;
font-family: 'DM Sans';
}
.content {
display: flex;
justify-content: space-between;
height: 100%;
margin-bottom: 20px;
}
.calendar{
margin: 60px 40px 0px 40px;
border-radius: 5px;
background-color: white;
width: 60%;
}
#calendar-holder {
/* smaller page size is 660px deal with it */
}
.BI {
margin : 60px 40px 0px 40px;
flex-grow: 1;
max-width: 38%;
background-color: white;
border-radius: 5px;
}
.bi h2{
margin-top: 5px;
}
.bi p {
overflow-y: auto;
max-height: fit-content;
}
.bi-title-underline {
width: 40%;
height: 2px;
background-color: black;
}
.bi img {
width: 700px;
height: 200px;
object-fit: cover;
}
.bi {
display: flex;
flex-direction: column;
align-items: center;
padding: 5px 20px;
font-family: 'DM Sans';
}
Update : there is the same problem on your demo website ( https://fullcalendar.io/demos ) so i thinks it is not my code the problem here
Your issue seems to be about FullCalendar, not CalendarBundle. Try to open an issue here: FullCalendar
@tomStory9 Please close this PR. This is clearly not about this Repo as @KoukiFactori already noticed.
Wrong repo