From e5c5a210b41265f61195e2c9bf337701c8047826 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 23 Sep 2018 12:27:55 +0200 Subject: [PATCH] Events difficult to read (screen and mobile) (#658) --- gramps/plugins/webreport/basepage.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/gramps/plugins/webreport/basepage.py b/gramps/plugins/webreport/basepage.py index 7055fb3af..1d2113396 100644 --- a/gramps/plugins/webreport/basepage.py +++ b/gramps/plugins/webreport/basepage.py @@ -619,18 +619,10 @@ class BasePage: # pylint: disable=C1001 (self._("Event"), "ColumnEvent"), (self._("Date"), "ColumnDate"), (self._("Place"), "ColumnPlace"), - (self._("Description"), "ColumnDescription")] + (self._("Description"), "ColumnDescription"), + (self._("Sources"), "ColumnSources")] ) trow += Html("/tr", close=None) - trow2 = Html("tr", indent=False) - trow2.extend( - Html("th", trans, class_=colclass, colspan=opt, inline=True) - for trans, colclass, opt in [ - ("", "ColumnEvent", 1), - (self._("Sources"), "ColumnSources", 1), - (self._("Notes"), "ColumnNotes", 2)] - ) - trow.extend(trow2) return trow def display_event_row(self, event, event_ref, place_lat_long, @@ -681,10 +673,10 @@ class BasePage: # pylint: disable=C1001 ) trow2 = Html("tr") - trow2 += Html("td", "", class_="ColumnSources") + trow2 += Html("td", "", class_="ColumnEvent") # get event source references srcrefs = self.get_citation_links(event.get_citation_list()) or " " - trow2 += Html("td", srcrefs, class_="ColumnSources") + trow += Html("td", srcrefs, class_="ColumnSources") # get event notes notelist = event.get_note_list() @@ -707,7 +699,7 @@ class BasePage: # pylint: disable=C1001 if notelist: htmllist.extend(self.dump_notes(notelist)) - trow2 += Html("td", htmllist, class_="ColumnNotes", colspan=2) + trow2 += Html("td", htmllist, class_="ColumnNotes", colspan=3) trow += trow2 # return events table row to its callers