center div

This commit is contained in:
akastijn 2025-10-24 22:18:19 +02:00
parent d075464ded
commit cf73303218
2 changed files with 10 additions and 4 deletions

View File

@ -42,10 +42,12 @@
</section> </section>
<section class="voteSection"> <section class="voteSection">
@if (voteStats) { @if (voteStats) {
<div class="centered"> <div class="full-width">
<p>You have voted {{ voteStats.voteStats.total }} times and {{ voteStats.voteStats.weekly }} this week. You <div class="centered">
are <p>You have voted {{ voteStats.voteStats.total }} times and {{ voteStats.voteStats.weekly }} this week. You
on a {{ voteStats.voteStreak.dailyStreak }} day vote streak!</p> are
on a {{ voteStats.voteStreak.dailyStreak }} day vote streak!</p>
</div>
</div> </div>
} }
<div class="container voteContainer"> <div class="container voteContainer">

View File

@ -155,6 +155,10 @@ time, mark, audio, video {
justify-content: center; justify-content: center;
} }
.full-width {
width: 100%;
}
.centered { .centered {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;