Update templates/image_studio.html
Browse files- templates/image_studio.html +14 -5
templates/image_studio.html
CHANGED
|
@@ -155,7 +155,12 @@
|
|
| 155 |
.upgrade-btn:hover { transform: translateY(-3px); }
|
| 156 |
|
| 157 |
/* Result Area */
|
| 158 |
-
#image-result-container { display:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
.generated-image-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
|
| 160 |
.generated-image-box img { max-width: 100%; border-radius: var(--radius-input); border: 1px solid var(--panel-border); box-shadow: var(--shadow-lg); }
|
| 161 |
|
|
@@ -236,7 +241,7 @@
|
|
| 236 |
.danger-btn:hover { background: var(--danger-color); color: #fff; }
|
| 237 |
|
| 238 |
.history-grid {
|
| 239 |
-
display: grid; grid-template-columns: repeat(
|
| 240 |
}
|
| 241 |
.history-item {
|
| 242 |
background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm);
|
|
@@ -246,7 +251,7 @@
|
|
| 246 |
transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--text-tertiary);
|
| 247 |
}
|
| 248 |
.history-item img {
|
| 249 |
-
width: 100%; height:
|
| 250 |
}
|
| 251 |
.history-details {
|
| 252 |
padding: 12px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1;
|
|
@@ -288,7 +293,9 @@
|
|
| 288 |
.ratio-grid { grid-template-columns: repeat(2, 1fr); }
|
| 289 |
h1 { font-size: 1.8rem; }
|
| 290 |
.generator-container { height: 250px; }
|
|
|
|
| 291 |
.text-overlay { font-size: 16px; }
|
|
|
|
| 292 |
}
|
| 293 |
</style>
|
| 294 |
</head>
|
|
@@ -388,7 +395,10 @@
|
|
| 388 |
|
| 389 |
<!-- Result Container -->
|
| 390 |
<div id="image-result-container">
|
| 391 |
-
<
|
|
|
|
|
|
|
|
|
|
| 392 |
</div>
|
| 393 |
|
| 394 |
<!-- History Section -->
|
|
@@ -773,7 +783,6 @@
|
|
| 773 |
sendBtn.innerHTML = `<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="animation: spin-border 1.5s linear infinite;"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg> در حال خلق تصویر...`;
|
| 774 |
|
| 775 |
// نمایش لودر پیشرفته
|
| 776 |
-
imageResultContainer.style.display = 'flex';
|
| 777 |
imageResultContainer.innerHTML = `
|
| 778 |
<div class="generator-container">
|
| 779 |
<div class="noise-layer"></div>
|
|
|
|
| 155 |
.upgrade-btn:hover { transform: translateY(-3px); }
|
| 156 |
|
| 157 |
/* Result Area */
|
| 158 |
+
#image-result-container { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--panel-border); animation: fadeIn 0.5s ease-out; }
|
| 159 |
+
|
| 160 |
+
.empty-placeholder { width: 400px; max-width: 100%; height: 300px; border: 2px dashed var(--input-border); border-radius: 20px; background-color: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
|
| 161 |
+
.empty-placeholder svg { color: var(--text-tertiary); margin-bottom: 15px; opacity: 0.5; width: 48px; height: 48px; }
|
| 162 |
+
.empty-placeholder p { color: var(--text-tertiary); font-size: 0.95rem; font-weight: 600; margin: 0; }
|
| 163 |
+
|
| 164 |
.generated-image-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
|
| 165 |
.generated-image-box img { max-width: 100%; border-radius: var(--radius-input); border: 1px solid var(--panel-border); box-shadow: var(--shadow-lg); }
|
| 166 |
|
|
|
|
| 241 |
.danger-btn:hover { background: var(--danger-color); color: #fff; }
|
| 242 |
|
| 243 |
.history-grid {
|
| 244 |
+
display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; /* تنظیم نمایش دقیقاً ۲ تصویر در هر ردیف */
|
| 245 |
}
|
| 246 |
.history-item {
|
| 247 |
background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm);
|
|
|
|
| 251 |
transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--text-tertiary);
|
| 252 |
}
|
| 253 |
.history-item img {
|
| 254 |
+
width: 100%; height: 200px; object-fit: cover; cursor: pointer; border-bottom: 1px solid var(--input-border);
|
| 255 |
}
|
| 256 |
.history-details {
|
| 257 |
padding: 12px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1;
|
|
|
|
| 293 |
.ratio-grid { grid-template-columns: repeat(2, 1fr); }
|
| 294 |
h1 { font-size: 1.8rem; }
|
| 295 |
.generator-container { height: 250px; }
|
| 296 |
+
.empty-placeholder { height: 250px; }
|
| 297 |
.text-overlay { font-size: 16px; }
|
| 298 |
+
.history-item img { height: 140px; }
|
| 299 |
}
|
| 300 |
</style>
|
| 301 |
</head>
|
|
|
|
| 395 |
|
| 396 |
<!-- Result Container -->
|
| 397 |
<div id="image-result-container">
|
| 398 |
+
<div class="empty-placeholder">
|
| 399 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>
|
| 400 |
+
<p>تصویر شما در این کادر ظاهر میشود</p>
|
| 401 |
+
</div>
|
| 402 |
</div>
|
| 403 |
|
| 404 |
<!-- History Section -->
|
|
|
|
| 783 |
sendBtn.innerHTML = `<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="animation: spin-border 1.5s linear infinite;"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg> در حال خلق تصویر...`;
|
| 784 |
|
| 785 |
// نمایش لودر پیشرفته
|
|
|
|
| 786 |
imageResultContainer.innerHTML = `
|
| 787 |
<div class="generator-container">
|
| 788 |
<div class="noise-layer"></div>
|