mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: elide sidebar text (#1026)
This commit is contained in:
parent
cff24581a4
commit
2331b328d8
@ -99,6 +99,7 @@ class MenuAppHeader extends StatelessWidget {
|
|||||||
app.name,
|
app.name,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: theme.textColor,
|
color: theme.textColor,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -82,7 +82,7 @@ class ViewSectionItem extends StatelessWidget {
|
|||||||
child: FlowyText.regular(
|
child: FlowyText.regular(
|
||||||
state.view.name,
|
state.view.name,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
overflow: TextOverflow.clip,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
@ -28,8 +28,9 @@ class MenuUser extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
_renderAvatar(context),
|
_renderAvatar(context),
|
||||||
const HSpace(10),
|
const HSpace(10),
|
||||||
_renderUserName(context),
|
Expanded(
|
||||||
const Spacer(),
|
child: _renderUserName(context),
|
||||||
|
),
|
||||||
_renderSettingsButton(context),
|
_renderSettingsButton(context),
|
||||||
//ToDo: when the user is allowed to create another workspace,
|
//ToDo: when the user is allowed to create another workspace,
|
||||||
//we get the below block back
|
//we get the below block back
|
||||||
@ -63,7 +64,7 @@ class MenuUser extends StatelessWidget {
|
|||||||
if (name.isEmpty) {
|
if (name.isEmpty) {
|
||||||
name = context.read<MenuUserBloc>().state.userProfile.email;
|
name = context.read<MenuUserBloc>().state.userProfile.email;
|
||||||
}
|
}
|
||||||
return FlowyText(name, fontSize: 12);
|
return FlowyText(name, fontSize: 12, overflow: TextOverflow.ellipsis);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _renderSettingsButton(BuildContext context) {
|
Widget _renderSettingsButton(BuildContext context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user