Skip to content

Commit

Permalink
feat: fit to width
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Oct 27, 2023
1 parent 2da96ca commit 11bb8dd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions templates/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,8 @@
</head>

<body class="bg-transparent text-gray-300 h-screen flex items-center justify-center">
<div class="p-4 rounded-lg w-64">
<div class="p-4 rounded-lg w-full max-w-screen-lg mx-auto">
<h1 class="text-lg mb-2 border-b border-gray-700 pb-2 text-gray-100">Workspace Storage</h1>
<!-- <div class="flex justify-between mt-2">
<span>Total:</span>
<span class="text-blue-500">{{.TotalQuota}} TB</span>
</div>
<div class="flex justify-between mt-2">
<span>Used:</span>
<span class="text-red-500">{{.UsedQuota}} TB</span>
</div> -->
<div class="flex items-center mt-2 mb-2">
<div class="h-2 bg-gray-700 rounded-full flex-grow mr-2">
<div class="h-full bg-blue-600 rounded-full" style="width:{{printf " %.2f" .PercentageUsed}}%;"></div>
Expand All @@ -34,7 +26,6 @@ <h1 class="text-lg mb-2 border-b border-gray-700 pb-2 text-gray-100">Workspace S
</div>
<div class="flex justify-between mt-2">
<span class="text-red-600">{{.UsedQuota}} TB</span>
<!-- <span class="text-slate-600">of</span> -->
<span class="text-blue-600">{{.TotalQuota}} TB</span>
</div>
</div>
Expand Down

0 comments on commit 11bb8dd

Please sign in to comment.