Adjust IT bar appearance (#2820)

* Adds gap above inline instruction, rounds top corners of IT bar

* chore: formatting

* chore: formatting

* chore: allow moderators to download chats

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
Kelrap 2025-05-16 09:37:47 -04:00 committed by GitHub
parent c5675d6cb3
commit 454ddeb2c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -340,7 +340,7 @@ class PangeaChatDetailsView extends StatelessWidget {
if (room.isSpace && room.isRoomAdmin && kIsWeb)
DownloadSpaceAnalyticsButton(space: room),
Divider(color: theme.dividerColor, height: 1),
if (room.isRoomAdmin && !room.isSpace)
if (room.ownPowerLevel >= 50 && !room.isSpace)
ListTile(
title: Text(
L10n.of(context).downloadGroupText,
@ -359,7 +359,7 @@ class PangeaChatDetailsView extends StatelessWidget {
),
onTap: () => _downloadChat(context),
),
if (room.isRoomAdmin && !room.isSpace)
if (room.ownPowerLevel >= 50 && !room.isSpace)
Divider(color: theme.dividerColor, height: 1),
if (isGroupChat)
ListTile(

View file

@ -116,9 +116,13 @@ class ITBarState extends State<ITBar> with SingleTickerProviderStateMixin {
Container(
key: widget.choreographer.itBarLinkAndKey.key,
decoration: BoxDecoration(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(24),
topRight: Radius.circular(24),
),
color: Theme.of(context).colorScheme.surfaceContainer,
),
padding: const EdgeInsets.fromLTRB(0, 3, 3, 3),
padding: const EdgeInsets.all(3),
child: SingleChildScrollView(
child: Column(
children: [