generated from VLADIMIR/template_frontend
update css
This commit is contained in:
@@ -272,39 +272,41 @@ async function deletePlace(place: Place) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="center-block-custom-big">
|
||||
<div class="places-container">
|
||||
<n-alert v-if="scenario.status == 'public'" title="Сценарий опубликован" type="warning"
|
||||
style="margin-bottom: 20px;">
|
||||
Не рекомендуется редактировать сценарий когда он опубликован.
|
||||
</n-alert>
|
||||
<div class="center-block-custom">
|
||||
<div class="width700">
|
||||
<div class="places-container">
|
||||
<n-alert v-if="scenario.status == 'public'" title="Сценарий опубликован" type="warning"
|
||||
style="margin-bottom: 20px;">
|
||||
Не рекомендуется редактировать сценарий когда он опубликован.
|
||||
</n-alert>
|
||||
|
||||
<div class="settings-block">
|
||||
Точек: {{ scenario.story?.places?.length }}
|
||||
<n-button quaternary @click="showSettingsScenarioModal = true" class="settings-button">
|
||||
<Icon class="settings-icon">
|
||||
<Settings />
|
||||
</Icon>
|
||||
Настройки
|
||||
</n-button>
|
||||
<div class="settings-block">
|
||||
Точек: {{ scenario.story?.places?.length }}
|
||||
<n-button quaternary @click="showSettingsScenarioModal = true" class="settings-button">
|
||||
<Icon class="settings-icon">
|
||||
<Settings />
|
||||
</Icon>
|
||||
Настройки
|
||||
</n-button>
|
||||
</div>
|
||||
|
||||
<PlaceBlock v-model:mode="mode" v-model:newPlaceCode="code" v-model:newPlaceName="name"
|
||||
v-model:newPlaceText="text">
|
||||
<n-flex justify="end">
|
||||
<n-button @click="cancelAddPlace()">Отмена</n-button>
|
||||
<n-button @click="addPlace()" :disabled="!code">Добавить точку</n-button>
|
||||
</n-flex>
|
||||
</PlaceBlock>
|
||||
|
||||
<PlaceBlock :place="place" v-model:mode="place.mode" v-for="place in scenario.story?.places"
|
||||
v-bind:key="place.oldCode">
|
||||
<n-flex justify="end">
|
||||
<n-button @click="deletePlace(place)" type="error" ghost>Удалить</n-button>
|
||||
<n-button @click="cancelUpdatePlace(place)">Отмена</n-button>
|
||||
<n-button @click="updatePlace(place)" :disabled="place.code == ''">Сохранить</n-button>
|
||||
</n-flex>
|
||||
</PlaceBlock>
|
||||
</div>
|
||||
|
||||
<PlaceBlock v-model:mode="mode" v-model:newPlaceCode="code" v-model:newPlaceName="name"
|
||||
v-model:newPlaceText="text">
|
||||
<n-flex justify="end">
|
||||
<n-button @click="cancelAddPlace()">Отмена</n-button>
|
||||
<n-button @click="addPlace()" :disabled="!code">Добавить точку</n-button>
|
||||
</n-flex>
|
||||
</PlaceBlock>
|
||||
|
||||
<PlaceBlock :place="place" v-model:mode="place.mode" v-for="place in scenario.story?.places"
|
||||
v-bind:key="place.oldCode">
|
||||
<n-flex justify="end">
|
||||
<n-button @click="deletePlace(place)" type="error" ghost>Удалить</n-button>
|
||||
<n-button @click="cancelUpdatePlace(place)">Отмена</n-button>
|
||||
<n-button @click="updatePlace(place)" :disabled="place.code == ''">Сохранить</n-button>
|
||||
</n-flex>
|
||||
</PlaceBlock>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -414,18 +416,5 @@ async function deletePlace(place: Place) {
|
||||
.places-container {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
overflow-y: auto;
|
||||
margin-top: 70px;
|
||||
padding: 20px;
|
||||
height: calc(100vh - 150px);
|
||||
|
||||
/* border: 1px solid red; */
|
||||
}
|
||||
|
||||
@media (width >=1024px) {
|
||||
.places-container {
|
||||
padding: 20px 250px;
|
||||
height: calc(100vh - 70px);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user