Use monospace for cwtch identifiers so they are fixed width
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Sarah Jamie Lewis 2024-02-09 10:06:36 -08:00
parent cd476f39c0
commit 497a12e8b6
3 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,3 @@
import 'dart:convert';
import 'dart:io';
import 'package:cwtch/constants.dart';

View File

@ -166,9 +166,11 @@ class _ContactRowState extends State<ContactRow> {
child: Text(
contact.onion,
overflow: TextOverflow.ellipsis,
style: TextStyle(
style: Provider.of<Settings>(context).scaleFonts(TextStyle(
fontSize: 13.0,
fontFamily: "RobotoMono",
color: ((contact.isBlocked ? Provider.of<Settings>(context).theme.portraitBlockedTextColor : Provider.of<Settings>(context).theme.mainTextColor) as Color)
.withOpacity(0.8)),
.withOpacity(0.8))),
)),
],
))),

View File

@ -45,7 +45,7 @@ class _ProfileRowState extends State<ProfileRow> {
child: Column(
children: [
Container(
height: 24,
height: 18.0 * Provider.of<Settings>(context).fontScaling + 10.0,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(),
child: Text(
@ -61,6 +61,10 @@ class _ProfileRowState extends State<ProfileRow> {
child: Text(
profile.onion,
softWrap: true,
style: TextStyle(
fontFamily: "RobotoMono",
fontSize: 14.0 * Provider.of<Settings>(context).fontScaling,
color: ((Provider.of<Settings>(context).theme.mainTextColor) as Color).withOpacity(0.8)),
overflow: TextOverflow.ellipsis,
)))
],