@@ -36,20 +36,20 @@
Oopsi! Il n'y a rien à afficher ici
(pour l'instant...)
-
+
{{item.caption}}
{{item.author}}
-
{{displayedDescription}}
+
{{displayedDescription}}
@@ -72,7 +72,7 @@
#artistPannel{
position: fixed;
width: 420px;
- height: 600px;
+ height: auto;
top: 16.1px;
left: 16.1px;
z-index: 33;
@@ -80,7 +80,7 @@
#artistContent{
width:100%;
- height:87%;
+ height:100%;
display: flex;
flex-direction: column;
justify-content: space-between;
@@ -127,7 +127,7 @@
grid-auto-rows: 150px;
gap: 16.1px;
width: 97%;
- height: 66%;
+ height: 333px;
overflow-y: auto;
align-items: center;
margin-left: 5px;
@@ -137,12 +137,14 @@
.itemDesc{
width: 90%;
- height: 23%;
+ height: 161px;
border-radius: 16.1px;
border-color: var(--main-color);
border-style: solid;
border-width: thin;
margin-top: 2%;
+ margin-bottom: 13.12px;
+ overflow-y: scroll;
color: var(--main-color);
font-family: 'velvelyne';
@@ -241,7 +243,7 @@
justify-content: flex-start;
align-items: center;
width: 95%;
- height: 66%;
+ height: 444px;
overflow-y: scroll;
overflow-x: hidden;
padding-right: 7.77px;
@@ -251,6 +253,8 @@
width:100%;
height: 33px;
display: flex;
+ flex-shrink: 0;
+
flex-direction: row;
align-items: center;
justify-content: flex-start;
@@ -378,36 +382,28 @@
if(e.type === 'image'){
this.$emit('openImg');
dataStorage.selectedImg = {
- src: e.src,
+ src: e.imgSrc,
caption: e.caption,
like: e.like,
- alt: e.alt,
isLiked: e.isLiked
}
- this.displayedDescription = e.description;
- }
- if (e.type === 'link'){
- this.$emit('openLink');
- dataStorage.selectedLink = {
- linksData: e.links,
- caption: e.caption,
- description: e.description
- }
- console.log(dataStorage.selectedLink);
+ this.$refs.description.innerHTML = e.content
}
if(e.type === 'video'){
this.$emit('openVideo');
dataStorage.selectedVideo = {
- src: e.src,
+ src: e.videoSrc,
caption: e.caption,
like: e.like,
alt: e.alt,
format: e.format,
isLiked: e.isLiked
}
- this.displayedDescription = e.description;
+ this.$refs.description.innerHTML = e.content
+ }
+ if (e.type === 'post'){
+ this.$refs.description.innerHTML = e.content
}
-
this.selectFile(e);
},
@@ -418,7 +414,10 @@
it.isSelected = false;
})}
e.isSelected = true;
- this.displayedDescription = e.description;
+ if (e.description){
+ this.$refs.description.innerHTML = '{{displayedDescription}}'
+ this.displayedDescription = e.description;
+ }
},
itemIsClicked(e){
if (!this.dblClickTimer || this.lastClickedItem !== e){
@@ -474,7 +473,7 @@
}
},
async mounted(){
- this.linksData = await loadPeopleData();
+ this.linksData = await loadPostData();
this.target = this.$refs.artistPannel;
this.dataFirstLoad();
console.log("Artist pannel is loaded!");