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:
@ -272,6 +272,7 @@ class _AddBlockMenuItem extends StatelessWidget {
|
|||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: data.onTap,
|
onTap: data.onTap,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
height: 68.0 * context.scale,
|
height: 68.0 * context.scale,
|
||||||
@ -289,9 +290,15 @@ class _AddBlockMenuItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const VSpace(4),
|
const VSpace(4),
|
||||||
FlowyText(
|
ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(
|
||||||
|
maxWidth: 68.0 * context.scale,
|
||||||
|
),
|
||||||
|
child: FlowyText(
|
||||||
data.text,
|
data.text,
|
||||||
fontSize: 12.0,
|
fontSize: 12.0,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user