Skip to content

Commit d96a164

Browse files
committed
Merge branch 'main' of https://github.com/manglemix/usr-vm
2 parents 59bbfa3 + 01bd82e commit d96a164

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

usr-backend/src/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ async fn update_order(
344344
ref_number: ActiveValue::Set(update_order.ref_number),
345345
};
346346

347-
active_model.insert(tx).await?;
347+
active_model.update(tx).await?;
348348

349349
Result::<_, sea_orm::DbErr>::Ok(())
350350
})

usr-web/src/routes/(apps)/manifest/+page.svelte

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { PUBLIC_API_ENDPOINT } from '$env/static/public';
44
import type { Team } from '$lib';
55
6-
let hideInStorage = $state(false);
6+
let hideInStorage = $state(true);
77
let selectedOrderId: number | null = $state(null);
88
let selectedOrderIndex: number = $state(0);
99
let fetching = $state(false);
@@ -188,6 +188,7 @@
188188
<button onclick={exportCSV}> Export CSV </button>
189189
</div>
190190
</div>
191+
<div class="table-fix-head">
191192
<table>
192193
<thead>
193194
<tr>
@@ -254,6 +255,7 @@
254255
{/each}
255256
</tbody>
256257
</table>
258+
</div>
257259
</section>
258260

259261
<section id="order-operations" class="mt-4">
@@ -641,6 +643,7 @@
641643
}
642644
#order-operations-content {
643645
background-color: lightgray;
646+
min-height: 30rem;
644647
}
645648
#order-operations-content > button {
646649
background-color: darkgray;
@@ -661,4 +664,12 @@
661664
text-decoration: underline;
662665
color: blue;
663666
}
667+
.table-fix-head {
668+
max-height: 35rem;
669+
overflow-y: scroll;
670+
}
671+
.table-fix-head thead th {
672+
position: sticky;
673+
top: 0px;
674+
}
664675
</style>

0 commit comments

Comments
 (0)