Spaces:
Sleeping
Sleeping
ㅅㅎㅇ commited on
Commit ·
77dedff
1
Parent(s): ad93965
fix: further reduce architecture diagram image size to 300px with scale transform
Browse files- CodeWeaver/ui/app.py +21 -5
CodeWeaver/ui/app.py
CHANGED
|
@@ -121,23 +121,39 @@ button[data-testid="submit-button"][aria-label*="Stop"] {
|
|
| 121 |
opacity: 0 !important;
|
| 122 |
}
|
| 123 |
/* 아키텍처 다이어그램 이미지 크기 조정 */
|
| 124 |
-
#architecture_diagram
|
|
|
|
| 125 |
max-width: 100% !important;
|
| 126 |
width: 100% !important;
|
| 127 |
-
max-height:
|
| 128 |
overflow: auto !important;
|
|
|
|
|
|
|
|
|
|
| 129 |
display: flex !important;
|
| 130 |
justify-content: center !important;
|
| 131 |
align-items: flex-start !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
#architecture_diagram img,
|
| 134 |
-
#architecture_diagram svg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
max-width: 100% !important;
|
| 136 |
-
width:
|
| 137 |
height: auto !important;
|
| 138 |
-
max-height:
|
| 139 |
object-fit: contain !important;
|
| 140 |
display: block !important;
|
|
|
|
|
|
|
|
|
|
| 141 |
}
|
| 142 |
"""
|
| 143 |
|
|
|
|
| 121 |
opacity: 0 !important;
|
| 122 |
}
|
| 123 |
/* 아키텍처 다이어그램 이미지 크기 조정 */
|
| 124 |
+
#architecture_diagram,
|
| 125 |
+
#architecture_diagram * {
|
| 126 |
max-width: 100% !important;
|
| 127 |
width: 100% !important;
|
| 128 |
+
max-height: 300px !important;
|
| 129 |
overflow: auto !important;
|
| 130 |
+
box-sizing: border-box !important;
|
| 131 |
+
}
|
| 132 |
+
#architecture_diagram {
|
| 133 |
display: flex !important;
|
| 134 |
justify-content: center !important;
|
| 135 |
align-items: flex-start !important;
|
| 136 |
+
padding: 10px !important;
|
| 137 |
+
}
|
| 138 |
+
#architecture_diagram > div {
|
| 139 |
+
max-height: 300px !important;
|
| 140 |
+
overflow: auto !important;
|
| 141 |
}
|
| 142 |
#architecture_diagram img,
|
| 143 |
+
#architecture_diagram svg,
|
| 144 |
+
#architecture_diagram img[src],
|
| 145 |
+
#architecture_diagram svg[src],
|
| 146 |
+
#architecture_diagram img[src*=".svg"],
|
| 147 |
+
#architecture_diagram svg[src*=".svg"] {
|
| 148 |
max-width: 100% !important;
|
| 149 |
+
width: 100% !important;
|
| 150 |
height: auto !important;
|
| 151 |
+
max-height: 300px !important;
|
| 152 |
object-fit: contain !important;
|
| 153 |
display: block !important;
|
| 154 |
+
margin: 0 auto !important;
|
| 155 |
+
transform: scale(0.8) !important;
|
| 156 |
+
transform-origin: center top !important;
|
| 157 |
}
|
| 158 |
"""
|
| 159 |
|