Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension-row: Use AdwActionRow for description #768

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

Kekun
Copy link

@Kekun Kekun commented Jan 20, 2025

This replaces the GtkGrid with a series of AdwActionRow for the extension description, version, and error message. This makes the design more modern and in line with the rest of the app and other GNOME apps, and makes the app fit on smartphones.

Fixes #767

⚠️ I'm not sure if the multiline style class should change the whole row (hence the title and the description) or the description only. It's trivial to fix, just replace .multiline { by .multiline .subtitle { in the CSS file. Right now it affects both, which IMO looks a biut better, but I don't have a strong opinion. What do you think?

Are are screenshots of before and after this MR.

Capture d’écran du 2025-01-20 10-46-19

Capture d’écran du 2025-01-20 10-46-03

This replaces the GtkGrid with a series of AdwActionRow for the
extension description, version, and error message. This makes the design
more modern and in line with the rest of the app and other GNOME apps,
and makes the app fit on smartphones.

Fixes mjakeman#767

Signed-off-by: Adrien Plazas <aplazas@gnome.org>
@oscfdezdz
Copy link
Collaborator

Thank you very much! It's a great improvement and code cleanup. Oddly though I can't reproduce the issue in the main branch or stable version with that same extension, it's strange that the label is wrapped in some cases and not in others 🤔

⚠️ I'm not sure if the multiline style class should change the whole row (hence the title and the description) or the description only. It's trivial to fix, just replace .multiline { by .multiline .subtitle { in the CSS file. Right now it affects both, which IMO looks a biut better, but I don't have a strong opinion. What do you think?

I agree that it looks better with the multiline style applied to the entire row 👍

@oscfdezdz oscfdezdz self-requested a review January 20, 2025 10:39
@oscfdezdz oscfdezdz merged commit af0c821 into mjakeman:master Jan 20, 2025
1 check passed
@oscfdezdz
Copy link
Collaborator

oscfdezdz commented Jan 20, 2025

I've tried again and the problem can be reproduced with "Bedtime Mode" extension and not with "Bluetooth Battery Meter" which is the one I tried before.

@Kekun
Copy link
Author

Kekun commented Jan 20, 2025

That makes sense, it's the only one I have on my GNOME smartphone, which is where I first encountered the issue.

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.

Doesn't fit on mobile
2 participants