Align IDs on activity lists for easier customization #4174

Closed
opened 2026-02-05 08:12:12 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @J-C-P on GitHub (Sep 11, 2023).

Describe the Bug

Hello,

I was trying to hide the recent activity from all pages.
It worked for some of them but not all of them using the CSS customization.

We found that some "recent activity" DIV has an ID and some have not.
changing

@if(count($activity) > 0)
        <div class="mb-xl">
            <h5>{{ trans('entities.recent_activity') }}</h5>
            @include('common.activity-list', ['activity' => $activity])
        </div>
    @endif

to

@if(count($activity) > 0)
        <div id="recent-activity" class="mb-xl">
            <h5>{{ trans('entities.recent_activity') }}</h5>
            @include('common.activity-list', ['activity' => $activity])
        </div>
    @endif

solves the problem.

Of course our work around will work until net version update.

Thanks for your amazing work !!

Regards from Luxembourg :-)

Steps to Reproduce

  1. Add <style>#recent-activity { display: none; }</style> in "Custom HTML Head Content"
  2. See "Recent Activity" disappear from home page.
  3. See it is still present in a shelf or book view.

Expected Behaviour

Recent Activity should disappear in shelf or book views also.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

23.05.2

Originally created by @J-C-P on GitHub (Sep 11, 2023). ### Describe the Bug Hello, I was trying to hide the recent activity from all pages. It worked for some of them but not all of them using the CSS customization. We found that some "recent activity" DIV has an ID and some have not. changing ``` @if(count($activity) > 0) <div class="mb-xl"> <h5>{{ trans('entities.recent_activity') }}</h5> @include('common.activity-list', ['activity' => $activity]) </div> @endif ``` to ``` @if(count($activity) > 0) <div id="recent-activity" class="mb-xl"> <h5>{{ trans('entities.recent_activity') }}</h5> @include('common.activity-list', ['activity' => $activity]) </div> @endif ``` solves the problem. Of course our work around will work until net version update. Thanks for your amazing work !! Regards from Luxembourg :-) ### Steps to Reproduce 1. Add **<style>#recent-activity { display: none; }</style>** in "Custom HTML Head Content" 2. See "Recent Activity" disappear from home page. 3. See it is still present in a shelf or book view. ### Expected Behaviour Recent Activity should disappear in shelf or book views also. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version 23.05.2
OVERLORD added the 🛠️ Enhancement🖌️ View Customization💻 Front-End labels 2026-02-05 08:12:12 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4174