Completed cloudinaryv2 fix
This commit is contained in:
parent
1327e86d03
commit
26ecd1182e
|
@ -152,6 +152,7 @@ a:hover {
|
|||
@media only screen and (max-width: 1100px) {
|
||||
.modal-picture {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,8 +81,10 @@ App.cable.subscriptions.create({
|
|||
acceptButton.style.display = "block"
|
||||
|
||||
triggerCalleeModalEvent()
|
||||
const photo = document.getElementById('caller-photo');
|
||||
document.getElementById('caller-name').innerHTML = data["message"]["caller_info"]
|
||||
document.getElementById('caller-photo').src = data["message"]["caller_photo"]
|
||||
photo.src = data["message"]["caller_photo"];
|
||||
photo.style.objectFit = "cover";
|
||||
|
||||
chatRoomId = data["message"]["chat_room_id"]
|
||||
console.log(`user with id: ${userId} needs to subscribe to chatroom ${[chatRoomId]}`)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png" class="avatar profile dropdown-toggle img-circle" width=65>
|
||||
<% else %>
|
||||
<%= cl_image_tag(contact.photo, class: "profile avatar dropdown-toggle img-circle", width:65, transformation: [
|
||||
{ gravity: "face:auto", width: 100, height: 100, radius: "max", crop: "crop" }
|
||||
{ gravity: "face:auto", width: 500, height: 500, radius: "max", crop: "crop" }
|
||||
])%>
|
||||
<% end %>
|
||||
<div class="text text-color">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png" class="avatar profile dropdown-toggle img-circle modal-picture" width=150>
|
||||
<% else %>
|
||||
<%= cl_image_tag(contact.photo, class: "profile avatar dropdown-toggle img-circle modal-picture", width:150, transformation: [
|
||||
{ gravity: "face:auto", width: 100, height: 100, radius: "max", crop: "crop" }])%>
|
||||
{ gravity: "face:auto", width: 500, height: 500, radius: "max", crop: "crop" }])%>
|
||||
<% end %>
|
||||
<div class="modal-text">
|
||||
<h4 class="modal-title" id="myModalLabel">Calling</h4>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png" class="avatar dropdown-toggle img-circle">
|
||||
<% else %>
|
||||
<%= cl_image_tag(current_user.photo, class: "avatar dropdown-toggle img-circle", transformation: [
|
||||
{ gravity: "face:auto", width: 100, height: 100, radius: "max", crop: "crop" }
|
||||
{ gravity: "face:auto", width: 500, height: 500, radius: "max", crop: "crop" }
|
||||
])%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue