diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Give every summary section the same columns
The ref rows always spanned five columns and the log three to five, so
with the default config the log and clone rows stopped 160px short of
the table's edge, and with any config the log rows did on a phone,
where they alone lost their counts. A column no cell began in also
made the summary and refs pages invalid HTML.
Diffstat (limited to 'source/ui-log.h')
| -rw-r--r-- | source/ui-log.h | 8 |
1 file changed, 7 insertions, 1 deletion
diff --git a/source/ui-log.h b/source/ui-log.h index 8e6e3db..d01a63d 100644 --- a/source/ui-log.h +++ b/source/ui-log.h @@ -8,8 +8,14 @@ #ifndef CGIT_UI_LOG_H #define CGIT_UI_LOG_H +/* + * With pager set the log is a page of its own, in a table it opens itself. + * Without it the rows go into a table the caller holds open, and table_columns + * is that table's width, which every row is filled out to. 0 leaves the rows + * at their own width. + */ extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern, - const char *path, int pager, int commit_graph, int commit_sort); + const char *path, int pager, int commit_graph, int commit_sort, int table_columns); extern void cgit_print_commit_decorations(struct commit *commit); #endif // CGIT_UI_LOG_H |
