diff --git a/src/api/gql/entite.fragment.gql b/src/api/gql/entite.fragment.gql index 9d49238..e3d668a 100644 --- a/src/api/gql/entite.fragment.gql +++ b/src/api/gql/entite.fragment.gql @@ -1,9 +1,11 @@ fragment EntiteFields on Entite { id - action - menacemaintien + uuid title can_update + agissante + action + menacemaintien image { alt url diff --git a/src/assets/main.scss b/src/assets/main.scss index 9017dfa..deb7d5e 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -1047,12 +1047,41 @@ body{ border: #eee 2px solid; border-radius: 5px; padding: 0.3em!important; - margin-bottom: 1em; + margin: 1em 0 0; font-size: 0.756em; &>*{ display: inline-block!important; padding: 0!important; cursor: pointer; } - +} + +div.editable-image{ + background: #eee; + max-width: 100%; + div.btn{ + border: #eee 2px solid; + border-radius: 5px; + margin: 1em 0 0; + font-size: 1em; + width: 100%; + height: 100px; + line-height:100px; + text-align: center; + transition: all 0.2s ease-in-out; + position: relative; + >span{ + display: inline-block; + vertical-align: middle; + } + cursor: pointer; + box-sizing: border-box; + &:hover{ + border: #01ffe2 2px solid; + } + + } + input[type="file"]{ + display: none; + } } \ No newline at end of file diff --git a/src/components/contents/Entite.vue b/src/components/contents/Entite.vue index 1fbba3a..7dfc9e6 100644 --- a/src/components/contents/Entite.vue +++ b/src/components/contents/Entite.vue @@ -1,12 +1,19 @@