mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
feat: hide tab counts on mobile for /me page
- Wrap tab labels and counts in separate spans for better control - Hide counts on mobile devices (max-width: 768px) to save space - Maintain counts on desktop for better UX - Follows mobile-first design principles
This commit is contained in:
@@ -267,7 +267,8 @@ const Me: React.FC<MeProps> = ({ relayPool }) => {
|
||||
onClick={() => setActiveTab('highlights')}
|
||||
>
|
||||
<FontAwesomeIcon icon={faHighlighter} />
|
||||
Highlights ({highlights.length})
|
||||
<span className="tab-label">Highlights</span>
|
||||
<span className="tab-count">({highlights.length})</span>
|
||||
</button>
|
||||
<button
|
||||
className={`me-tab ${activeTab === 'reading-list' ? 'active' : ''}`}
|
||||
@@ -275,7 +276,8 @@ const Me: React.FC<MeProps> = ({ relayPool }) => {
|
||||
onClick={() => setActiveTab('reading-list')}
|
||||
>
|
||||
<FontAwesomeIcon icon={faBookmark} />
|
||||
Reading List ({allIndividualBookmarks.length})
|
||||
<span className="tab-label">Reading List</span>
|
||||
<span className="tab-count">({allIndividualBookmarks.length})</span>
|
||||
</button>
|
||||
<button
|
||||
className={`me-tab ${activeTab === 'archive' ? 'active' : ''}`}
|
||||
@@ -283,7 +285,8 @@ const Me: React.FC<MeProps> = ({ relayPool }) => {
|
||||
onClick={() => setActiveTab('archive')}
|
||||
>
|
||||
<FontAwesomeIcon icon={faBooks} />
|
||||
Archive ({readArticles.length})
|
||||
<span className="tab-label">Archive</span>
|
||||
<span className="tab-count">({readArticles.length})</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user