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:
parent
c5675d6cb3
commit
454ddeb2c0
2 changed files with 7 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue