Fix profile header 9px overflow: raise compact threshold to 280, add clip safety net
This commit is contained in:
parent
d3feaf98d8
commit
2f9f0aaaf2
|
|
@ -1411,7 +1411,7 @@ class _ProfileHeader extends StatelessWidget {
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
final isCompact = constraints.maxHeight < 240;
|
final isCompact = constraints.maxHeight < 280;
|
||||||
final avatarRadius = isCompact ? 38.0 : 46.0;
|
final avatarRadius = isCompact ? 38.0 : 46.0;
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
|
|
@ -1421,6 +1421,7 @@ class _ProfileHeader extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
children: [
|
children: [
|
||||||
if (isOwnProfile)
|
if (isOwnProfile)
|
||||||
Align(
|
Align(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue