mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
poprawki designu scenerii
This commit is contained in:
@@ -86,7 +86,7 @@ $online: #09a116;
|
|||||||
$unknown: #b93c3c;
|
$unknown: #b93c3c;
|
||||||
|
|
||||||
.status-badge {
|
.status-badge {
|
||||||
border-radius: 1rem;
|
border-radius: 1em;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
padding: 0.2em 0.55em;
|
padding: 0.2em 0.55em;
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="info-dispatcher">
|
<section class="info-dispatcher">
|
||||||
<div class="dispatcher" v-if="onlineScenery && onlineScenery.dispatcherExp != -1">
|
<div class="info-top" v-if="onlineScenery && onlineScenery.dispatcherExp != -1">
|
||||||
<span
|
<span
|
||||||
class="dispatcher_level"
|
class="dispatcher-level"
|
||||||
:style="calculateExpStyle(onlineScenery.dispatcherExp, onlineScenery.dispatcherIsSupporter)"
|
:style="calculateExpStyle(onlineScenery.dispatcherExp, onlineScenery.dispatcherIsSupporter)"
|
||||||
>
|
>
|
||||||
{{ onlineScenery.dispatcherExp > 1 ? onlineScenery.dispatcherExp : 'L' }}
|
{{ onlineScenery.dispatcherExp > 1 ? onlineScenery.dispatcherExp : 'L' }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<router-link
|
<router-link
|
||||||
class="dispatcher_name"
|
class="dispatcher-name"
|
||||||
:to="`/journal/dispatchers?search-dispatcher=${onlineScenery.dispatcherName}`"
|
:to="`/journal/dispatchers?search-dispatcher=${onlineScenery.dispatcherName}`"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@@ -21,18 +21,25 @@
|
|||||||
</span>
|
</span>
|
||||||
<span v-else>{{ onlineScenery.dispatcherName }}</span>
|
<span v-else>{{ onlineScenery.dispatcherName }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="dispatcher_likes text--primary">
|
<div class="info-bottom">
|
||||||
|
<span
|
||||||
|
class="dispatcher-likes text--primary"
|
||||||
|
v-if="onlineScenery && onlineScenery.dispatcherExp != -1"
|
||||||
|
>
|
||||||
<img src="/images/icon-like.svg" alt="Likes count icon" />
|
<img src="/images/icon-like.svg" alt="Likes count icon" />
|
||||||
<span>{{ onlineScenery?.dispatcherRate || '0' }}</span>
|
<span>{{ onlineScenery?.dispatcherRate || '0' }}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
|
|
||||||
<StationStatusBadge
|
<span class="dispatcher-badge">
|
||||||
:isOnline="onlineScenery ? true : false"
|
<StationStatusBadge
|
||||||
:dispatcherStatus="onlineScenery?.dispatcherStatus"
|
:isOnline="onlineScenery ? true : false"
|
||||||
:dispatcherTimestamp="onlineScenery?.dispatcherTimestamp"
|
:dispatcherStatus="onlineScenery?.dispatcherStatus"
|
||||||
/>
|
:dispatcherTimestamp="onlineScenery?.dispatcherTimestamp"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -59,45 +66,46 @@ export default defineComponent({
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.info-dispatcher {
|
.info-dispatcher {
|
||||||
display: flex;
|
font-size: 1.8em;
|
||||||
align-items: center;
|
}
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
flex-wrap: wrap;
|
.info-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-bottom {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
|
||||||
.dispatcher {
|
margin-top: 0.5em;
|
||||||
font-size: 2em;
|
}
|
||||||
|
|
||||||
&_level {
|
.dispatcher-level {
|
||||||
display: inline-block;
|
background: firebrick;
|
||||||
margin-right: 0.3em;
|
|
||||||
background: firebrick;
|
|
||||||
|
|
||||||
border-radius: 0.1em;
|
border-radius: 0.1em;
|
||||||
|
|
||||||
width: 1.5em;
|
width: 1.5em;
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
&_name {
|
.dispatcher-likes {
|
||||||
cursor: pointer;
|
display: flex;
|
||||||
margin-right: 0.25em;
|
gap: 0.25em;
|
||||||
}
|
|
||||||
|
|
||||||
&_likes {
|
img {
|
||||||
img {
|
width: 1em;
|
||||||
height: 0.7em;
|
|
||||||
margin: 0 0.25em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-badge {
|
|
||||||
font-size: 1.25em;
|
|
||||||
margin: 0.5em 0.25em;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dispatcher-badge {
|
||||||
|
font-size: 0.7em;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ button.back-btn {
|
|||||||
height: 95vh;
|
height: 95vh;
|
||||||
min-height: 750px;
|
min-height: 750px;
|
||||||
max-height: 1000px;
|
max-height: 1000px;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user