Add nowrap class to style.scss and update main-view.php for text formatting

This commit is contained in:
2024-11-10 11:20:48 +01:00
parent 553feb3e8b
commit a91c2275b1
7 changed files with 29 additions and 11 deletions

View File

@@ -61,8 +61,8 @@
<a href="/finances/main_view/tag-clear=true" class="btn btn-sm btn-success"><i class="fa fa-bars"></i>wszystkie</a>
<?
$max = $this->tags[0]['count'];
$min = $this->tags[count($this->tags) - 1]['count'];
if (count($this->tags) === 1)
$min = is_array( $this -> tags ) ? $this -> tags[ count( $this -> tags ) - 1 ]['count'] : 0;
if ( is_array( $thi -> tags ) and count( $this->tags) === 1)
$min = 0;
$step = ($max - $min) / 10;
?>
@@ -268,7 +268,7 @@
<tbody>
<? if ( is_array( $this -> operations_list ) ): foreach ( $this -> operations_list as $operation ):?>
<tr>
<td class="text-right">
<td class="text-right nowrap">
<?= $operation['date'];?>
</td>
<td class="text-right <?= $operation['amount'] > 0 ? 'text-success' : 'text-danger';?>">