mirror of
https://github.com/immich-app/immich.git
synced 2025-01-26 17:21:29 +02:00
fix(mobile): remove log message counter (#6865)
* fix(mobile): remove log message counter Previously, the items in the log page were numbered starting with `#0` and increasing from top to bottom. Being new to the app, this confused me because I would have expected that newer messages have a higher number than older messages. Removing the counter completely because it doesn't add any value - log messages are identified by their timestamp, text and other details. * Switch timestamp and context in log overview
This commit is contained in:
parent
bc3979029d
commit
57758293e5
@ -69,9 +69,9 @@ class AppLogPage extends HookConsumerWidget {
|
|||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: const Text(
|
||||||
"Logs - ${logMessages.value.length}",
|
"Logs",
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
),
|
),
|
||||||
@ -135,29 +135,15 @@ class AppLogPage extends HookConsumerWidget {
|
|||||||
dense: true,
|
dense: true,
|
||||||
tileColor: getTileColor(logMessage.level),
|
tileColor: getTileColor(logMessage.level),
|
||||||
minLeadingWidth: 10,
|
minLeadingWidth: 10,
|
||||||
title: Text.rich(
|
title: Text(
|
||||||
TextSpan(
|
truncateLogMessage(logMessage.message, 4),
|
||||||
children: [
|
style: const TextStyle(
|
||||||
TextSpan(
|
fontSize: 14.0,
|
||||||
text: "#$index ",
|
fontFamily: "Inconsolata",
|
||||||
style: TextStyle(
|
|
||||||
color: isDarkTheme ? Colors.white70 : Colors.grey[600],
|
|
||||||
fontSize: 14.0,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TextSpan(
|
|
||||||
text: truncateLogMessage(logMessage.message, 4),
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 14.0,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
style: const TextStyle(fontSize: 14.0, fontFamily: "Inconsolata"),
|
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
"[${logMessage.context1}] Logged on ${DateFormat("HH:mm:ss.SSS").format(logMessage.createdAt)}",
|
"at ${DateFormat("HH:mm:ss.SSS").format(logMessage.createdAt)} in ${logMessage.context1}",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12.0,
|
fontSize: 12.0,
|
||||||
color: Colors.grey[600],
|
color: Colors.grey[600],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user