forked from extern/easydiffusion
Make the tabs container a class, to make it reusable for other tab groups
This commit is contained in:
parent
ded6a41f86
commit
0b3a35c4b6
@ -32,7 +32,7 @@
|
||||
<div id="server-status-color">●</div>
|
||||
<span id="server-status-msg">Stable Diffusion is starting..</span>
|
||||
</div>
|
||||
<div id="tab-container">
|
||||
<div class="tab-container">
|
||||
<span id="tab-main" class="tab active">
|
||||
<span><i class="fa fa-image icon"></i> Generate</span>
|
||||
</span>
|
||||
|
@ -1029,7 +1029,7 @@ input::file-selector-button {
|
||||
}
|
||||
|
||||
/* TABS */
|
||||
#tab-container {
|
||||
.tab-container {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
@ -1466,6 +1466,9 @@ function linkTabContents(tab) {
|
||||
|
||||
tab.addEventListener("click", event => selectTab(tab.id))
|
||||
}
|
||||
function isTabActive(tab) {
|
||||
return tab.classList.contains("active")
|
||||
}
|
||||
|
||||
let pauseClient = false
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector('#tab-container')?.insertAdjacentHTML('beforeend', `
|
||||
document.querySelector('.tab-container')?.insertAdjacentHTML('beforeend', `
|
||||
<span id="tab-news" class="tab">
|
||||
<span><i class="fa fa-bolt icon"></i> What's new?</span>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user