Skip to content

Fix: Hide size label when cache is cleared to prevent checkmark overlap.#2070

Open
AnukarOP wants to merge 1 commit intoTelegramMessenger:masterfrom
AnukarOP:master
Open

Fix: Hide size label when cache is cleared to prevent checkmark overlap.#2070
AnukarOP wants to merge 1 commit intoTelegramMessenger:masterfrom
AnukarOP:master

Conversation

@AnukarOP
Copy link

Hey! 👋

I noticed a small UI bug while using Telegram on iOS.

The issue:
When you clear the cache in Settings > Data and Storage > Storage Usage, the "0 B" text overlaps with the green checkmark icon. It looks a bit off.

Screenshot:
Screenshot

What I changed:
Added chartTotalLabelView.isHidden = listCategories.isEmpty to hide the size label when the cache is fully cleared, so it doesn't overlap with the success checkmark.

File modified:
submodules/TelegramUI/Components/StorageUsageScreen/Sources/StorageUsageScreen.swift

This is my first contribution, happy to make any changes if needed!

Hide chart total label when storage categories are empty.
@CLAassistant
Copy link

CLAassistant commented Mar 26, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants