Reduce space wastage

This commit is contained in:
2024-04-10 18:35:51 +02:00
parent 8900c44e51
commit f69389c461
10 changed files with 27 additions and 63 deletions

View File

@@ -94,7 +94,9 @@ const get_page = async (url) => {
v.method === "paypal" &&
v.status === "paid" &&
(new Date(v.createdAt)) > startDate &&
(new Date(v.createdAt)) < endDate
(new Date(v.createdAt)) < endDate &&
(v.amountRefunded === undefined || v.amountRefunded.value === "0.00") &&
(v.amountChargedBack === undefined || v.amountChargedBack.value === "0.00")
) {
payments.push(v)
added++

View File

@@ -78,7 +78,7 @@ let sort = (field) => {
<td>{peer.address}</td>
<td>{peer.unreachable_count}</td>
<td>{peer.load_1_min.toFixed(1)} / {peer.load_5_min.toFixed(1)} / {peer.load_15_min.toFixed(1)}</td>
<td>{(peer.latency/1000).toPrecision(3)}</td>
<td>{(peer.latency/1000).toFixed(3)}</td>
<td>{formatDataVolume(peer.avg_network_tx, 3)}/s</td>
<td>{formatDataVolume(peer.avg_network_rx, 3)}/s</td>
<td>{peer.network_ratio.toFixed(2)}</td>

View File

@@ -18,7 +18,10 @@ export let sort_func
<style>
button {
display: block;
margin: 0;
line-height: 1em;
width: 100%;
text-align: center;
}
</style>

View File

@@ -444,7 +444,7 @@ const keyboard_event = evt => {
</button>
{/if}
<CopyButton bind:this={copy_btn} text={window.location.href} style="width: calc(100% - 6px)">
<CopyButton bind:this={copy_btn} text={window.location.href} style="width: calc(100% - 4px)">
<u>C</u>opy link
</CopyButton>
@@ -626,7 +626,7 @@ const keyboard_event = evt => {
display: flex;
flex-direction: row;
text-align: left;
padding: 4px;
padding: 2px;
align-items: center;
}
@media(max-height: 600px) {
@@ -707,7 +707,7 @@ const keyboard_event = evt => {
.toolbar.toolbar_visible { left: 0; }
.toolbar_button{
width: calc(100% - 6px);
width: calc(100% - 4px);
}
.toolbar_button > span {
vertical-align: middle;

View File

@@ -41,14 +41,10 @@ export let fs_navigator
word-break: break-all;
display: inline-flex;
flex-direction: row;
line-height: 1em;
}
.node_name {
/* This padding makes sure that characters which extend below the
line-height do not get cut off */
padding: 4px 2px;
max-width: 20vw;
overflow: hidden;
max-width: 25vw;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

View File

@@ -223,7 +223,7 @@ const update_css = path => document.documentElement.style = branding_from_path(p
flex-direction: row;
text-align: left;
box-shadow: none;
padding: 4px;
padding: 2px;
}
/* File preview area (row 2) */

View File

@@ -136,7 +136,7 @@ let expand = e => {
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr));
}
.separator {
height: 2px;

View File

@@ -367,7 +367,7 @@ is collapsed */
flex-shrink: 0;
display: flex;
flex-direction: row;
padding: 4px;
padding: 2px;
}
.nav_bar > button {
flex-shrink: 0;

View File

@@ -140,7 +140,7 @@ these padding divs to move it 25% up */
.title {
flex-grow: 1;
flex-shrink: 1;
font-size: 1.2em;
font-size: 1.1em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;