Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/templates/components/git_form.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<!-- File size selector -->
<div class="w-full md:w-[200px]">
<label for="file_size" class="block text-gray-700 mb-1">
Include files under: <span id="size_value" class="font-bold">50kb</span>
Include files under: <span id="size_value" class="font-bold">50KiB</span>
</label>
<input type="range"
id="file_size"
Expand Down
8 changes: 4 additions & 4 deletions src/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ function initializeSlider() {
}

// Add helper function for formatting size
function formatSize(sizeInKB) {
if (sizeInKB >= 1024) {
return Math.round(sizeInKB / 1024) + 'mb';
function formatSize(sizeInKiB) {
if (sizeInKiB >= 1024) {
return Math.round(sizeInKiB / 1024) + 'MiB';
}
return Math.round(sizeInKB) + 'kb';
return Math.round(sizeInKiB) + 'KiB';
}

// Initialize slider on page load
Expand Down