Skip to content

Commit

Permalink
💄 UI(owner): update property style (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboll authored Jul 19, 2024
1 parent 1bc7b88 commit db0a556
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
47 changes: 35 additions & 12 deletions owner/src/components/property/ConsultProperty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
<div class="bg-pic position--absolute"></div>
<div class="fr-container position--relative mt-100 fr-mb-5w">
<div class="fr-grid-row space-between fr-mb-3w">
<div class="fr-grid-row">
<router-link
:title="t('consultproperty.back-label')"
class="fr-btn btn--white fr-btn--secondary"
to="/"
>{{ t('consultproperty.back') }}</router-link
>
<div ref="headContainer" class="head-container">
<div>
<router-link
:title="t('consultproperty.back-label')"
class="fr-btn btn--white fr-btn--secondary"
to="/"
>{{ t('consultproperty.back') }}</router-link
>
</div>
<div class="title">{{ name }}</div>
</div>
<div class="fr-grid-row">
<div class="spacer"></div>
<VGouvFrModal id="share-modal">
<template v-slot:button>
<button
Expand Down Expand Up @@ -47,13 +48,13 @@
<button
:title="t('consultproperty.update-btn')"
@click="editProperty()"
class="fr-btn btn--white fr-btn--secondary fr-ml-1w"
class="fr-btn btn--white fr-btn--secondary"
>
{{ t('consultproperty.modify-property') }}
</button>
<button
:title="t('consultproperty.delete-btn')"
class="fr-btn btn--white fr-btn--secondary fr-ml-1w"
class="fr-btn btn--white fr-btn--secondary"
@click="confirmDeleteProperty = true"
>
{{ t('consultproperty.delete-property') }}
Expand Down Expand Up @@ -412,6 +413,9 @@ function getRateClass(applicant: Applicant) {
.bg-pic {
width: 100%;
height: 320px;
@media (max-width: 768px) {
height: 550px;
}
top: 0;
left: 0;
background-size: cover !important;
Expand Down Expand Up @@ -442,11 +446,14 @@ function getRateClass(applicant: Applicant) {
.title {
color: white;
margin-left: 2rem;
font-size: 2rem;
line-height: 2rem;
}
.left-auto {
margin-left: auto;
}
.md-24 {
width: 2rem;
}
Expand Down Expand Up @@ -607,6 +614,22 @@ tr {
margin-right: 0;
text-align: right;
}
.spacer {
flex-grow: 1;
}
.head-container {
width: 100%;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: row;
gap: 1rem;
@media all and (max-width: 768px) {
flex-direction: column;
}
}
</style>
<style lang="scss">
Expand Down
3 changes: 3 additions & 0 deletions owner/src/components/property/PropertyContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ const dpe = computed(
.bg-pic {
width: 100%;
height: 320px;
@media (max-width: 768px) {
height: 550px;
}
top: 0;
left: 0;
background-size: cover !important;
Expand Down

0 comments on commit db0a556

Please sign in to comment.