1.1 --- a/css/event-aggregator.css Sat Apr 04 02:57:47 2009 +0200
1.2 +++ b/css/event-aggregator.css Sat Apr 04 03:11:37 2009 +0200
1.3 @@ -144,7 +144,8 @@
1.4 left: 0;
1.5 top: 0;
1.6 z-index: 2;
1.7 - padding: 0.25em;
1.8 + padding: 0.25em 0.5em 0.25em 0.5em;
1.9 + min-height: 2em;
1.10 }
1.11
1.12 .event-summary-box:hover > .event-summary-popup {
2.1 --- a/macros/EventAggregator.py Sat Apr 04 02:57:47 2009 +0200
2.2 +++ b/macros/EventAggregator.py Sat Apr 04 03:11:37 2009 +0200
2.3 @@ -386,16 +386,6 @@
2.4
2.5 event_summary = EventAggregatorSupport.getEventSummary(event_page, event_details)
2.6
2.7 - # Try to work out if the summary will cause sizing issues.
2.8 -
2.9 - summary_parts = event_summary.split()
2.10 - largest_part = reduce(lambda x, y: max(x, len(y)), summary_parts, 0)
2.11 -
2.12 - if largest_part > 12:
2.13 - sizing = "font-size: smaller;"
2.14 - else:
2.15 - sizing = ""
2.16 -
2.17 # Generate a colour for the event.
2.18
2.19 bg = getColour(event_page.page_name)
2.20 @@ -424,19 +414,18 @@
2.21 output.append(fmt.div(on=1, css_class="event-summary-box"))
2.22
2.23 if not hide_text:
2.24 - output.append(fmt.div(on=1, css_class=(" ".join(css_classes)), style=style+" "+sizing))
2.25 + output.append(fmt.div(on=1, css_class=(" ".join(css_classes)), style=style))
2.26 output.append(linkToPage(request, event_page, event_summary))
2.27 output.append(fmt.div(on=0))
2.28
2.29 # Add a pop-up element for long summaries.
2.30
2.31 - if sizing:
2.32 - output.append(fmt.div(on=1, css_class="event-summary-popup", style=style+" font-size: larger;"))
2.33 - output.append(linkToPage(request, event_page, event_summary))
2.34 - output.append(fmt.div(on=0))
2.35 + output.append(fmt.div(on=1, css_class="event-summary-popup", style=style))
2.36 + output.append(linkToPage(request, event_page, event_summary))
2.37 + output.append(fmt.div(on=0))
2.38
2.39 else:
2.40 - output.append(fmt.div(on=1, css_class=(" ".join(css_classes)), style=hidden_style+" "+sizing))
2.41 + output.append(fmt.div(on=1, css_class=(" ".join(css_classes)), style=hidden_style))
2.42 output.append(fmt.text(event_summary))
2.43 output.append(fmt.div(on=0))
2.44