bhupesh-sf commited on
Commit
bdec8db
·
verified ·
1 Parent(s): 23e312f

Upload custom.css

Browse files
Files changed (1) hide show
  1. ui/assets/css/custom.css +18 -16
ui/assets/css/custom.css CHANGED
@@ -949,10 +949,11 @@ h1, h2, h3, h4, h5, h6 {
949
  transform: scale(1.1) !important;
950
  }
951
 
952
- /* === SCENE DISPLAY STYLES (for future phases) === */
953
  .scene-container {
954
  position: relative !important;
955
  width: 100% !important;
 
956
  max-width: none !important;
957
  border-radius: 12px !important;
958
  overflow: hidden !important;
@@ -960,30 +961,31 @@ h1, h2, h3, h4, h5, h6 {
960
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
961
  }
962
 
963
- .scene-image {
 
 
 
 
 
 
964
  width: 100% !important;
 
965
  max-width: none !important;
966
- height: 350px !important;
967
- object-fit: cover !important;
968
- filter: brightness(0.85) contrast(1.1) !important;
969
- transition: all 0.8s ease !important;
970
  }
971
 
972
- .scene-image img {
973
- width: 100% !important;
974
- max-width: none !important;
975
- height: 100% !important;
976
- object-fit: cover !important;
977
  }
978
 
979
- /* Force Gradio image container to be full width */
980
- .scene-image > div,
981
- .scene-image > div > div,
982
- .scene-image > div > div > img {
983
  width: 100% !important;
984
- max-width: none !important;
985
  height: 350px !important;
986
  object-fit: cover !important;
 
987
  }
988
 
989
  .scene-image.transitioning {
 
949
  transform: scale(1.1) !important;
950
  }
951
 
952
+ /* === SCENE DISPLAY STYLES (Gradio 6 compatible) === */
953
  .scene-container {
954
  position: relative !important;
955
  width: 100% !important;
956
+ min-width: 100% !important;
957
  max-width: none !important;
958
  border-radius: 12px !important;
959
  overflow: hidden !important;
 
961
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
962
  }
963
 
964
+ /* Force all Gradio wrapper elements to take full width */
965
+ .scene-image,
966
+ .scene-image > *,
967
+ .scene-image > * > *,
968
+ .scene-image [class*="svelte"],
969
+ .scene-image .image-container,
970
+ .scene-image .wrap {
971
  width: 100% !important;
972
+ min-width: 100% !important;
973
  max-width: none !important;
 
 
 
 
974
  }
975
 
976
+ /* Image container specific sizing */
977
+ .scene-image {
978
+ height: 350px !important;
979
+ display: block !important;
 
980
  }
981
 
982
+ /* Target the actual image element */
983
+ .scene-image img {
984
+ display: block !important;
 
985
  width: 100% !important;
 
986
  height: 350px !important;
987
  object-fit: cover !important;
988
+ filter: brightness(0.85) contrast(1.1) !important;
989
  }
990
 
991
  .scene-image.transitioning {