mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-26 02:01:39 +00:00
Made MainDisplay sticky
This commit is contained in:
parent
64d6aae1c0
commit
62d23ec699
1 changed files with 18 additions and 8 deletions
|
@ -1,15 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<Sticky>
|
||||||
|
<div class="main-display">
|
||||||
<span v-if="showPrefix">You have </span>
|
<span v-if="showPrefix">You have </span>
|
||||||
<ResourceVue :resource="resource" :color="color || 'white'" />
|
<ResourceVue :resource="resource" :color="color || 'white'" />
|
||||||
{{ resource.displayName
|
{{ resource.displayName
|
||||||
}}<!-- remove whitespace -->
|
}}<!-- remove whitespace -->
|
||||||
<span v-if="effectComponent">, <component :is="effectComponent" /></span>
|
<span v-if="effectComponent">, <component :is="effectComponent" /></span>
|
||||||
<br /><br />
|
|
||||||
</div>
|
</div>
|
||||||
|
</Sticky>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import Sticky from "components/layout/Sticky.vue";
|
||||||
import type { CoercableComponent } from "features/feature";
|
import type { CoercableComponent } from "features/feature";
|
||||||
import type { Resource } from "features/resources/resource";
|
import type { Resource } from "features/resources/resource";
|
||||||
import ResourceVue from "features/resources/Resource.vue";
|
import ResourceVue from "features/resources/Resource.vue";
|
||||||
|
@ -35,3 +37,11 @@ const showPrefix = computed(() => {
|
||||||
return Decimal.lt(props.resource.value, "1e1000");
|
return Decimal.lt(props.resource.value, "1e1000");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.main-display {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue