diff --git a/public/assets/css/media.css b/public/assets/css/media.css
index ef90b07b..8fea7d4d 100644
--- a/public/assets/css/media.css
+++ b/public/assets/css/media.css
@@ -20,6 +20,23 @@
.image-border_bottom {
top: auto;
}
+.textblock__container_swap > .image-content-size img {
+ width: 100% !important;
+ height: 545px !important;
+ object-fit: cover !important;
+}
+
+.textblock__container_row > .image-content-size img {
+ width: 100% !important;
+ height: 300px !important;
+ object-fit: cover !important;
+}
+
+.textblock__container_side > .image-content-size img {
+ width: 100% !important;
+ height: 545px !important;
+ object-fit: cover !important;
+}
@media screen and (max-width: 1600px) {
.wrapper {
@@ -88,6 +105,11 @@
.textblock__container_swap .textblock__image {
margin-left: 70px;
}
+ .textblock__container_row > .image-content-size img {
+ width: 100% !important;
+ height: 300px !important;
+ object-fit: cover !important;
+ }
.breadcrumbs {
margin-bottom: 30px;
}
@@ -246,10 +268,35 @@
width: 310px;
margin: 0px 11px 35px;
}
+
.image-border-wrap {
+ width: 100%;
+ height: 100%;
margin-bottom: 25px;
}
+ .textblock__container_side > .image-content-size img {
+ width: 100% !important;
+ height: 425px !important;
+ object-fit: cover !important;
+ }
+ .textblock__container_swap_left > .image-content-size img {
+ width: 100% !important;
+ height: 425px !important;
+ object-fit: cover !important;
+ }
+
+ .textblock__container_row > .image-content-size {
+ width: 100% !important;
+ max-width: 100% !important;
+ }
+
+ .textblock__container_row > .image-content-size img {
+ height: 210px !important;
+ object-fit: cover !important;
+ }
+
+
.values {
padding-bottom: 55px;
}
@@ -918,7 +965,7 @@
font-size: 34px;
margin-bottom: 30px;
}
-
+
.engagements__wrapper {
text-align: center;
}
@@ -979,8 +1026,30 @@
border: 1px solid #a0a0a0;
}
.image-border-wrap {
+ width: 100%;
+ height: 100%;
margin-bottom: 10px;
}
+ .textblock__container_swap > .image-content-size img {
+ width: 100% !important;
+ height: auto !important;
+ object-fit: cover !important;
+ }
+ .textblock__container_side > .image-content-size img {
+ width: 100% !important;
+ height: auto !important;
+ object-fit: cover !important;
+ }
+ .textblock__container_row > .image-content-size {
+ width: 100% !important;
+ max-width: 100% !important;
+ height: 210px !important;
+ }
+
+ .image-content-size img {
+ height: 100% !important;
+ object-fit: cover !important;
+ }
.list-item__title {
margin-bottom: 15px;
}
diff --git a/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/Image.tsx b/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/Image.tsx
index 9fec1817..29bf0bf9 100644
--- a/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/Image.tsx
+++ b/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/Image.tsx
@@ -66,8 +66,10 @@ const Image = TiptapImage.extend({
// Define the structure of the render.
// Use for render html in front files.
renderHTML({ node, HTMLAttributes }) {
-
- const attrsCopy: AttrsType = { ...HTMLAttributes, src: HTMLAttributes.src.replace(/^https?:\/\/[^/]+/, '') };
+ const attrsCopy: AttrsType = {
+ ...HTMLAttributes,
+ src: HTMLAttributes.src.replace(/^https?:\/\/[^/]+/, ""),
+ };
delete attrsCopy.caption;
delete attrsCopy.float;
diff --git a/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/ImageNodeView.tsx b/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/ImageNodeView.tsx
index 2f33219f..13ea6d7a 100644
--- a/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/ImageNodeView.tsx
+++ b/resources/ts/back/Components/Inputs/Wysiwyg/Extensions/Image/ImageNodeView.tsx
@@ -421,7 +421,7 @@ export default function ImageNodeView(props: NodeViewProps) {
)}
({