From 9f887de35ee5a8f6a33d7cf9569cf04c7145950e Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Mon, 15 Oct 2007 12:01:26 +0000 Subject: [PATCH] Cal day view : introduce a gap for event which begin at same hour, display events with round corners (CSS3 - only Firefox) --- webcit/calendar_view.c | 6 ++++-- webcit/static/webcit.css | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 5b401d1d3..17a0cbf9c 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -774,6 +774,7 @@ void calendar_day_view_display_events(time_t thetime, int year, int month, struct tm ending_tm; int top = 0; int height = 0; + int gap = 0; if (WCC->num_cal == 0) { // \todo FIXME wprintf("


\n"); @@ -901,14 +902,15 @@ void calendar_day_view_display_events(time_t thetime, int year, int month, } wprintf("
", - top, height + top, (50 + (gap * 50)), height ); wprintf("", Cal->cal_msgnum, year, month, day, t.hour, hour); escputs((char *) icalproperty_get_comment(p)); wprintf("
\n"); + gap++; } } diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index b363d4c67..c1e079b0b 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -1178,9 +1178,11 @@ td.events_of_the_day { filter:alpha(opacity=50); /* Internet Explorer 6 */ -moz-opacity:0.5; /* Mozilla 1.6 and prec. */ opacity: 0.5; /* CSS3 and Mozilla */ + -moz-border-radius: 8px; /* CSS3 and Mozilla */ border: solid 1px red; background-color: yellow; z-index: 10; + padding: 0 4px 0 4px; } .event a { -- 2.30.2