mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 05:12:50 +00:00
Feature/toggle fix (#586)
This commit is contained in:
1 parent
8d0094aa76
commit
c4e937d677
1 file changed
+1
-9
@@ -80,16 +80,10 @@ export function StyleButtons() {
|
||||
|
||||
const handleLipsyncChange = () => {
|
||||
lipSync.value = !lipSync.value;
|
||||
if (lipSync.value) {
|
||||
faceDetail.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
const handleFaceDetailerChange = () => {
|
||||
faceDetail.value = !faceDetail.value;
|
||||
if (faceDetail.value) {
|
||||
lipSync.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -141,10 +135,9 @@ export function StyleButtons() {
|
||||
<Switch.Label
|
||||
className={twMerge(
|
||||
"mr-3 grow text-sm font-medium transition-opacity",
|
||||
faceDetail.value ? "opacity-50" : "",
|
||||
)}
|
||||
>
|
||||
Preserve Lip Movement
|
||||
Sync Lips with Speech
|
||||
</Switch.Label>
|
||||
<Switch
|
||||
checked={lipSync.value}
|
||||
@@ -174,7 +167,6 @@ export function StyleButtons() {
|
||||
<Switch.Label
|
||||
className={twMerge(
|
||||
"mr-3 grow text-sm font-medium transition-opacity",
|
||||
lipSync.value ? "opacity-50" : "",
|
||||
)}
|
||||
>
|
||||
Face Detailer
|
||||
|
||||
Reference in new issue
Block a user