mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2026-01-20 20:01:24 +00:00
Fix donation bar overflow
This commit is contained in:
parent
3212a2d41d
commit
22f5ceb0bf
@ -6,8 +6,9 @@
|
||||
</a>
|
||||
</h3>
|
||||
<div class="donation-bar">
|
||||
<!-- a width of 100% is a bit more as the full width of "donation-bar" one can see if we don't set "overflow: hidden;". I couldn't find how to fix -->
|
||||
<div class="donation-bar-value" :style="{ width: ((currentValue <= target ? currentValue : target) / target) * 100 + '%' }">
|
||||
{{ currentValueStr }}
|
||||
<span class="donation-bar-value-str">{{ currentValueStr }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
@ -128,6 +129,7 @@ const timeFrameStr = computed(() => {
|
||||
<style scoped>
|
||||
.donation-bar {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--notice-c-accent-bg);
|
||||
border-radius: 10px;
|
||||
margin: 20px 0 20px 0;
|
||||
@ -142,6 +144,10 @@ const timeFrameStr = computed(() => {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.donation-bar-value-str{
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 830px) {
|
||||
.donation-bar-value {
|
||||
font-size: 1.5em;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user