[0.9.1] Mobile: Personal/Community filter the home hive from any page
- Turn the header Personal/Community tabs into links to /activity?hive=personal|community, so they work on every page (they take you to the home and filter the hexagons), not only while already on /activity — no more dead buttons off the home. - Drop the "All" tab: entering shows all 10 categories; clicking a filter that is already active toggles it off and shows all again. - Filter the hive server-side (renderHiveNav reads the request filter set by the middleware) instead of the CSS radio-hack, and drop the now-dead half-filter CSS. Active tab is highlighted via the .active class.
This commit is contained in:
parent
d5dac39bfd
commit
7f85389a88
4 changed files with 19 additions and 24 deletions
|
|
@ -1994,7 +1994,7 @@ exports.activityView = (actions, filter, userId, q = '', extras = {}) => {
|
|||
p(desc)
|
||||
),
|
||||
renderHiveNav(),
|
||||
input({ type: 'checkbox', id: 'activity-filter-toggle', class: 'hive-filter-radio' }),
|
||||
input({ type: 'checkbox', id: 'activity-filter-toggle', class: 'activity-filter-toggle' }),
|
||||
label({ for: 'activity-filter-toggle', class: 'activity-filter-btn' },
|
||||
span(i18n.filter || 'Filter'), span({ class: 'activity-filter-caret' }, '▾')),
|
||||
div({ class: 'activity-filter-panel' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue