Skip to content

Commit

Permalink
fix: add tooltip for change workspace icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Apr 5, 2024
1 parent 68c4336 commit 75117a1
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
import 'package:appflowy_popover/appflowy_popover.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

Expand Down Expand Up @@ -148,7 +149,6 @@ class WorkspaceMenuItem extends StatelessWidget {
rightIcon: const HSpace(42.0),
text: Column(
crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.center,
children: [
FlowyText.medium(
workspace.name,
Expand All @@ -174,10 +174,14 @@ class WorkspaceMenuItem extends StatelessWidget {
left: 8,
child: SizedBox.square(
dimension: 32,
child: WorkspaceIcon(
workspace: workspace,
iconSize: 26,
enableEdit: true,
child: FlowyTooltip(
message:
LocaleKeys.document_plugins_cover_changeIcon.tr(),
child: WorkspaceIcon(
workspace: workspace,
iconSize: 26,
enableEdit: true,
),
),
),
),
Expand Down

0 comments on commit 75117a1

Please sign in to comment.