resize table for entropy

This commit is contained in:
Tykayn 2021-02-10 12:19:22 +01:00 committed by tykayn
parent ddf5b40ef4
commit e32db4983d
2 changed files with 8 additions and 3 deletions

View File

@ -138,7 +138,7 @@
<tbody></tbody> <tbody></tbody>
<tr> <tr>
<td>{{ getEntropy(plainText).toFixed(3) }}</td> <td>{{ getEntropy(plainText).toFixed(3) }}</td>
<td>{{ plainText }}</td> <td><input type="text" [(ngModel)]="plainText" (ngModelChange)="encrypt(plainText)" /></td>
</tr> </tr>
<tr> <tr>
<td>{{ getEntropy(simpleCipheredText).toFixed(3) }}</td> <td>{{ getEntropy(simpleCipheredText).toFixed(3) }}</td>

View File

@ -26,12 +26,17 @@
margin-top: 1em; margin-top: 1em;
} }
table {
width: 100%;
display: block;
}
.entropy { .entropy {
.limited-text { .limited-text {
max-width: 50% !important; max-width: 50% !important;
overflow: scroll; overflow-x: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
height: 2em; height: 4em;
padding: 1em;
display: block; display: block;
} }
} }