mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: the text and icon in + menu are not aligned in the same baseline (#4500)
This commit is contained in:
parent
0e3ffa8fd5
commit
64cd7d41ca
@ -272,6 +272,7 @@ class _AddBlockMenuItem extends StatelessWidget {
|
||||
return GestureDetector(
|
||||
onTap: data.onTap,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
height: 68.0 * context.scale,
|
||||
@ -289,9 +290,15 @@ class _AddBlockMenuItem extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const VSpace(4),
|
||||
FlowyText(
|
||||
data.text,
|
||||
fontSize: 12.0,
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: 68.0 * context.scale,
|
||||
),
|
||||
child: FlowyText(
|
||||
data.text,
|
||||
fontSize: 12.0,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user