fix: Manter os 4 botões de ação (zoom, regenerar, prompt, download) sempre ativos e visíveis ao carregar trabalhos prontos na Fábrica de Quadrinhos
This commit is contained in:
+3
-41
@@ -4659,47 +4659,9 @@ Se algum dado não for mencionado, deixe a string vazia ou false para boolean.`
|
||||
}));
|
||||
|
||||
if (generatedPanelsData.length > 0) {
|
||||
comicsResultTitle.textContent = project.titulo || 'História em Quadrinhos';
|
||||
comicsGridContainer.innerHTML = '';
|
||||
|
||||
generatedPanelsData.forEach((panel, index) => {
|
||||
const panelCard = document.createElement('div');
|
||||
panelCard.className = 'comic-panel-card';
|
||||
|
||||
const imgContainer = document.createElement('div');
|
||||
imgContainer.className = `comic-panel-image-container ratio-${selectedComicsRatio.replace(':', '-')}`;
|
||||
|
||||
const img = document.createElement('img');
|
||||
img.className = 'comic-panel-image';
|
||||
img.src = panel.imageUrl;
|
||||
img.alt = `Quadro ${panel.panel_number}`;
|
||||
imgContainer.appendChild(img);
|
||||
|
||||
const badge = document.createElement('div');
|
||||
badge.className = 'comic-panel-number-badge';
|
||||
badge.textContent = panel.panel_number;
|
||||
imgContainer.appendChild(badge);
|
||||
|
||||
panelCard.appendChild(imgContainer);
|
||||
|
||||
const caption = document.createElement('div');
|
||||
caption.className = 'comic-caption-text';
|
||||
|
||||
const textarea = document.createElement('textarea');
|
||||
textarea.className = 'comic-caption-input';
|
||||
textarea.value = panel.dialogue || '';
|
||||
textarea.placeholder = 'Digite a fala ou legenda do quadrinho...';
|
||||
textarea.addEventListener('input', (e) => {
|
||||
panel.dialogue = e.target.value;
|
||||
});
|
||||
|
||||
caption.appendChild(textarea);
|
||||
panelCard.appendChild(caption);
|
||||
|
||||
comicsGridContainer.appendChild(panelCard);
|
||||
});
|
||||
|
||||
comicsResultArea.style.display = 'flex';
|
||||
if (comicsResultTitle) comicsResultTitle.textContent = project.titulo || 'História em Quadrinhos';
|
||||
renderComicsStoryboard();
|
||||
if (comicsResultArea) comicsResultArea.style.display = 'flex';
|
||||
}
|
||||
|
||||
comicsVideoResult.style.display = 'none';
|
||||
|
||||
+21
-15
@@ -3410,30 +3410,36 @@ code {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
z-index: 15;
|
||||
opacity: 0.9;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
.comic-panel-card:hover .comic-panel-overlay-actions {
|
||||
opacity: 1;
|
||||
opacity: 1 !important;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.btn-comic-action {
|
||||
background: rgba(15, 23, 42, 0.85);
|
||||
color: white;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
backdrop-filter: blur(4px);
|
||||
background: rgba(15, 23, 42, 0.88);
|
||||
color: #ffffff;
|
||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
border-radius: 6px;
|
||||
padding: 4px 7px;
|
||||
font-size: 0.75rem;
|
||||
padding: 5px 8px;
|
||||
font-size: 0.82rem;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
transition: background 0.2s, transform 0.1s;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
|
||||
user-select: none;
|
||||
}
|
||||
.btn-comic-action:hover {
|
||||
background: var(--brand-pink, #db2777);
|
||||
transform: scale(1.05);
|
||||
border-color: rgba(255, 255, 255, 0.6);
|
||||
transform: translateY(-1px) scale(1.08);
|
||||
box-shadow: 0 4px 10px rgba(219, 39, 119, 0.4);
|
||||
}
|
||||
.btn-comic-action:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.comic-speech-bubble {
|
||||
|
||||
Reference in New Issue
Block a user