Skip to content

Commit

Permalink
fix(map): fix detail pop-up/table & area description
Browse files Browse the repository at this point in the history
OpenSILEX/opensilex-dev!1199
  • Loading branch information
CHIAVARINO ALEXIA committed Mar 28, 2024
1 parent 9c614fe commit 166fc84
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
25 changes: 13 additions & 12 deletions opensilex-front/front/src/components/geometry/AreaDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class="detail-element-header"
></opensilex-PageHeader>

<opensilex-PageActions :returnButton="true" :tabs="true">
<opensilex-PageActions :returnButton="false" :tabs="true">
<template v-slot>
<b-nav-item
:active="isDetailsTab()"
Expand All @@ -32,7 +32,7 @@

<opensilex-PageContent>
<b-row v-if="isDetailsTab()">
<b-col sm="5">
<b-col sm="6">
<opensilex-Card label="component.common.description">
<template v-slot:rightHeader>
<div class="ml-3">
Expand Down Expand Up @@ -63,11 +63,11 @@
:value="nameType()"
label="component.area.details.rdfType"
></opensilex-StringView>
<opensilex-StringView
<opensilex-TextView
v-if="area.description"
:value="area.description"
label="component.area.details.description"
></opensilex-StringView>
></opensilex-TextView>
<opensilex-GeometryCopy
:value="area.geometry"
></opensilex-GeometryCopy>
Expand Down Expand Up @@ -113,7 +113,7 @@
></opensilex-ModalForm>
</div>
</div>
<div v-else>
<div v-else class="detail-pop-up">
<!-- Name -->
<template v-if="showName">
{{ area.uri === uri ? "" : loadArea(uri) }}
Expand Down Expand Up @@ -331,14 +331,11 @@ export default class AreaDetails extends Vue {
</script>

<style lang="scss" scoped>
.details-actions-row {
margin-top: -35px;
margin-left: -15px;
margin-right: 15px;
}
::v-deep .capitalize-first-letter {
display: block;
.detail-pop-up{
padding-top: 2%;
margin-left: 0.5rem;
margin-right: 0.5rem;
}
#show {
Expand All @@ -351,6 +348,8 @@ en:
component:
area:
title: Area
add: Description of the area
update: Update Area
delete: Delete area
details:
uri: URI
Expand All @@ -363,6 +362,8 @@ fr:
component:
area:
title: Zone
add: Description de la zone
update: Mise à jour de la zone
delete: Supprimer la zone
details:
uri: URI
Expand Down
1 change: 1 addition & 0 deletions opensilex-front/front/src/components/geometry/AreaForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
helpMessage="AreaForm.description-help"
label="AreaForm.description"
placeholder="AreaForm.description-placeholder"
@keydown.native.enter.stop
></opensilex-TextAreaForm>
</b-form>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<template>
<div v-if="item">
<div v-if="item.properties.nature === 'Area'">
<div v-if="item.properties.nature === 'Areas'">
<opensilex-AreaDetails
:showName="showName"
:experiment="experiment"
:uri="item.properties.uri"
:withBasicProperties="false"
/>
</div>
<div v-if="item.properties.nature === 'Device'">
<div v-if="item.properties.nature === 'Devices'">
<opensilex-DeviceDetailsMap
:selected="item.properties"
:showName="showName"
/>
</div>
<div v-if="(item.properties.nature === 'ScientificObjects') && detailsSO">
<div v-if="(item.properties.nature === 'Scientific Objects') && detailsSO">
<template v-if="withBasicProperties">
<opensilex-ScientificObjectDetailMap
v-if="item.properties.OS"
Expand Down Expand Up @@ -65,4 +65,10 @@ p {
font-size: 115%;
margin-top: 1em;
}
::v-deep .field-view-title{
min-width: auto;
padding-right: 1rem;
}
</style>
1 change: 0 additions & 1 deletion opensilex-front/front/src/components/geometry/MapView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,6 @@ p {
box-shadow: 0 0.25em 0.5em transparentize(#000000, 0.8);
border-radius: 5px;
text-indent: 2px;
max-width: 75%;
}
::v-deep .b-table-details .card {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ ol, ul, dl {
cursor: pointer;
}
.field-view-title {
min-width: 120px;
}
#vl-overlay-detailItem > div > div > div > div > div > span.static-field-line {
display: block !important;
}
Expand Down

0 comments on commit 166fc84

Please sign in to comment.