fixed room name overflow

This commit is contained in:
Kima 2024-02-24 21:50:19 +01:00
parent 1171e3aaaf
commit ae1f3f9389

View File

@ -321,6 +321,7 @@ class LessonTile extends StatelessWidget {
// ), // ),
// ), // ),
Container( Container(
width: lesson.room.length > 20 ? 111 : null,
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 6.0, vertical: 3.5), horizontal: 6.0, vertical: 3.5),
decoration: BoxDecoration( decoration: BoxDecoration(
@ -334,6 +335,7 @@ class LessonTile extends StatelessWidget {
), ),
child: Text( child: Text(
lesson.room, lesson.room,
overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
height: 1.1, height: 1.1,
fontSize: 12.5, fontSize: 12.5,