diff --git a/app/src/components/layout/sidebarRight/properties/eventProperties/WallProperties.tsx b/app/src/components/layout/sidebarRight/properties/eventProperties/WallProperties.tsx index a3e09e9..43f1ceb 100644 --- a/app/src/components/layout/sidebarRight/properties/eventProperties/WallProperties.tsx +++ b/app/src/components/layout/sidebarRight/properties/eventProperties/WallProperties.tsx @@ -119,7 +119,7 @@ const WallProperties = () => {
-
setActiveSide("side1")} @@ -128,14 +128,15 @@ const WallProperties = () => {
{selectedMaterials.side1 && ( {selectedMaterials.side1.textureName} )}
-
+ -
setActiveSide("side2")} @@ -144,17 +145,19 @@ const WallProperties = () => {
{selectedMaterials.side2 && ( {selectedMaterials.side2.textureName} )}
-
+
{selectedMaterials[activeSide] && ( {selectedMaterials[activeSide]!.textureName} @@ -168,18 +171,22 @@ const WallProperties = () => { ) : (
{materials.map((material, index) => ( -
handleSelectMaterial(material)} >
- {material.textureName} + {material.textureName}
{material.textureName}
-
{ e.stopPropagation(); @@ -187,8 +194,8 @@ const WallProperties = () => { }} > -
-
+ + ))}
)} diff --git a/app/src/styles/layout/sidebar.scss b/app/src/styles/layout/sidebar.scss index b043e29..62ce571 100644 --- a/app/src/styles/layout/sidebar.scss +++ b/app/src/styles/layout/sidebar.scss @@ -1114,6 +1114,7 @@ input { padding: 5px 4px; + text-align: center; } .dropdown { @@ -1527,6 +1528,7 @@ .header { @include flex-space-between; border: none; + .eyedrop-button { @include flex-center; } @@ -1534,6 +1536,7 @@ .inputs-container { @include flex-space-between; + .input-container { padding: 0 4px; gap: 6px; @@ -1652,6 +1655,143 @@ } } +.sidebar-right-wrapper { + .wall-properties-container { + .header { + + color: var(--background-color-button); + } + + .wall-properties { + padding: 12px 0; + + .value-field-container { + padding: 0; + + .input { + input { + text-align: center; + } + } + } + } + + section { + padding: 0; + margin: 0; + max-height: 50vh; + + .header-wrapper { + display: flex; + justify-content: space-between; + padding: 12px; + } + + .material-preview { + display: flex; + flex-direction: column; + align-items: center; + gap: 15px; + background: var(--Grays-Gray-6, #F2F2F7); + padding: 18px 25px; + + .sides-wrapper { + display: flex; + justify-content: space-between; + width: 100%; + background-color: #FCFDFD; + border-radius: 4px; + overflow: hidden; + + .side-wrapper { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + gap: 8px; + padding: 8px 0; + cursor: pointer; + + .label { + color: var(--background-color-button); + } + + &.active { + background-color: #E0DFFF; + } + + .texture-image { + width: 20px; + height: 20px; + border-radius: 50%; + overflow: hidden; + + img { + width: 100%; + height: 100%; + object-fit: cover; + } + } + } + } + + .preview { + width: 90%; + // width: 100%; + height: 111px; + + img { + width: 100%; + height: 100%; + object-fit: cover; + } + } + } + + .materials { + padding: 6px 12px; + max-height: 250px; + overflow: auto; + + .material-container { + display: flex; + flex-direction: column; + gap: 6px; + + .material-wrapper { + display: flex; + justify-content: space-between; + align-items: center; + + .material-property { + display: flex; + align-items: center; + gap: 6px; + + .material-image { + width: 30px; + height: 30px; + border-radius: 6px; + overflow: hidden; + + img { + width: 100%; + height: 100%; + object-fit: cover; + } + } + } + + .delete-material { + cursor: pointer; + } + } + } + } + } + } +} + .assets-container-main { width: 100%; display: flex;