Skip to content

Commit

Permalink
[Democracy] fix clipped proposal id on small phones (#1703)
Browse files Browse the repository at this point in the history
* [Democracy] better comment about bad practice

* [proposalTile] fix cut-off proposal id
  • Loading branch information
clangenb authored Sep 26, 2024
1 parent c40a0c7 commit 1a76239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/lib/page-encointer/democracy/democracy_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _DemocracyPageState extends State<DemocracyPage> {
final h3Grey = context.titleLarge.copyWith(fontSize: 19, color: AppColors.encointerGrey);
final appConfig = RepositoryProvider.of<AppConfig>(context);

// Not an ideal practice, but we only release a dev-version of the faucet, and cleanup can be later.
// Not an ideal practice, see #1702
Iterable<Widget> activeProposalList() {
if (proposals == null || tallies == null) {
return appConfig.isIntegrationTest
Expand Down
6 changes: 1 addition & 5 deletions app/lib/page-encointer/democracy/widgets/proposal_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ class _ProposalTileState extends State<ProposalTile> {
),
ListTile(
contentPadding: const EdgeInsets.symmetric(),
leading: SizedBox(
width: 20,
height: 20,
child: Text(widget.proposalId.toString(), style: titleSmall),
),
leading: Text(widget.proposalId.toString(), style: titleSmall),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expand Down

0 comments on commit 1a76239

Please sign in to comment.