Skip to content

Commit

Permalink
smarter overflow/hit area for daygrid list-item events. closes #5635
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jul 29, 2020
1 parent fa6b617 commit e21c9ef
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/daygrid/src/styles/daygrid-event.css
Expand Up @@ -24,28 +24,32 @@
// --- the dot style of event ---

.fc-daygrid-dot-event {
display: block;
display: flex;
align-items: center;
padding: 2px 0;
overflow: hidden;

& .fc-event-title {
flex-grow: 1;
flex-shrink: 1;
min-width: 0; // important for allowing to shrink all the way
overflow: hidden;
font-weight: bold;
}

& .fc-event-time,
& .fc-event-title {
display: inline-block; // better than inline, for sitting next to dot
}

&:hover,
&.fc-event-mirror {
background: rgba(0, 0, 0, 0.1);
}

&.fc-event-selected:before {
// expand hit area
top: -10px;
bottom: -10px;
}

}

.fc-daygrid-event-dot { // the actual dot
display: inline-block;
margin: 0 4px;
box-sizing: content-box;
width: 0;
Expand Down

0 comments on commit e21c9ef

Please sign in to comment.