Feature/toggle fix (#586)

This commit is contained in:
ArEnSc authored and GitHub committed 2024-07-06 00:14:35 -04:00
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