mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Improve tags display
This commit is contained in:
@@ -550,7 +550,7 @@ class _ComicDescription extends StatelessWidget {
|
||||
int cnt = (constraints.maxHeight - 22).toInt() ~/ 25;
|
||||
return Container(
|
||||
clipBehavior: Clip.antiAlias,
|
||||
height: 22 + cnt * 25,
|
||||
height: 21 + cnt * 24,
|
||||
width: double.infinity,
|
||||
decoration: const BoxDecoration(),
|
||||
child: Wrap(
|
||||
@@ -562,19 +562,16 @@ class _ComicDescription extends StatelessWidget {
|
||||
children: [
|
||||
for (var s in tags!)
|
||||
Container(
|
||||
height: 22,
|
||||
padding: const EdgeInsets.fromLTRB(3, 2, 3, 2),
|
||||
height: 21,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: constraints.maxWidth * 0.45,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: s == "Unavailable"
|
||||
? Theme.of(context).colorScheme.errorContainer
|
||||
: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondaryContainer,
|
||||
borderRadius:
|
||||
const BorderRadius.all(Radius.circular(8)),
|
||||
? context.colorScheme.errorContainer
|
||||
: context.colorScheme.secondaryContainer,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Center(
|
||||
widthFactor: 1,
|
||||
@@ -586,7 +583,9 @@ class _ComicDescription extends StatelessWidget {
|
||||
softWrap: true,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
))),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
).toAlign(Alignment.topCenter);
|
||||
@@ -1520,7 +1519,8 @@ class SimpleComicTile extends StatelessWidget {
|
||||
|
||||
return AnimatedTapRegion(
|
||||
borderRadius: 8,
|
||||
onTap: onTap ?? () {
|
||||
onTap: onTap ??
|
||||
() {
|
||||
context.to(
|
||||
() => ComicPage(
|
||||
id: comic.id,
|
||||
|
Reference in New Issue
Block a user