@@ -292,25 +292,29 @@ class _TabBarItemButtonState extends State<TabBarItemButton> {
292292 );
293293 },
294294 child: IntrinsicWidth (
295- child: FlowyButton (
296- radius: Corners .s6Border,
297- hoverColor: AFThemeExtension .of (context).greyHover,
298- onTap: () {
299- if (widget.isSelected) menuController.show ();
300- widget.onTap.call ();
301- },
302- margin: const EdgeInsets .symmetric (horizontal: 12 , vertical: 5 ),
303- onSecondaryTap: () {
304- menuController.show ();
305- },
306- leftIcon: _buildViewIcon (),
307- text: FlowyText (
308- widget.view.nameOrDefault,
309- lineHeight: 1.0 ,
310- textAlign: TextAlign .center,
311- overflow: TextOverflow .ellipsis,
312- color: color,
313- fontWeight: widget.isSelected ? FontWeight .w500 : FontWeight .w400,
295+ child: FlowyTooltip (
296+ message: widget.view.nameOrDefault,
297+ preferBelow: false ,
298+ child: FlowyButton (
299+ radius: Corners .s6Border,
300+ hoverColor: AFThemeExtension .of (context).greyHover,
301+ onTap: () {
302+ if (widget.isSelected) menuController.show ();
303+ widget.onTap.call ();
304+ },
305+ margin: const EdgeInsets .symmetric (horizontal: 12 , vertical: 5 ),
306+ onSecondaryTap: () {
307+ menuController.show ();
308+ },
309+ leftIcon: _buildViewIcon (),
310+ text: FlowyText (
311+ widget.view.nameOrDefault,
312+ lineHeight: 1.0 ,
313+ textAlign: TextAlign .center,
314+ overflow: TextOverflow .ellipsis,
315+ color: color,
316+ fontWeight: widget.isSelected ? FontWeight .w500 : FontWeight .w400,
317+ ),
314318 ),
315319 ),
316320 ),
0 commit comments