mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
separate selected voice and search
This commit is contained in:
1 parent
ea9ad2b371
commit
773420d04e
3 files changed
+30
-33
No files matched your search
@@ -47,7 +47,7 @@
|
||||
}
|
||||
|
||||
.fy-weight-picker-preview {
|
||||
border-radius: 0 0 0.5rem 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
padding: 0.75rem;
|
||||
background-color: rgba($action, 0.8);
|
||||
border: 2px solid lighten($action, 12%);
|
||||
|
||||
@@ -16,7 +16,6 @@ import { BucketConfig } from "@storyteller/components/src/api/BucketConfig";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faArrowRight,
|
||||
faBell,
|
||||
faChevronRight,
|
||||
faDeleteLeft,
|
||||
faSearch,
|
||||
@@ -175,6 +174,30 @@ export default function DevTTS({ sessionSubscriptionsWrapper }: Props) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="position-relative">
|
||||
<Label label="Search for a Voice" />
|
||||
<Input
|
||||
autoFocus={isMobile ? false : selectedVoice ? false : true}
|
||||
icon={faSearch}
|
||||
placeholder={"Search from 3500+ voices"}
|
||||
onChange={searchChange()}
|
||||
value={search}
|
||||
/>
|
||||
{search && (
|
||||
<FontAwesomeIcon
|
||||
icon={faXmark}
|
||||
className="position-absolute opacity-75 fs-5"
|
||||
style={{
|
||||
right: "1rem",
|
||||
top: "50%",
|
||||
transform: "translateY(-50%)",
|
||||
cursor: "pointer",
|
||||
}}
|
||||
onClick={() => searchSet("")}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div className="d-flex align-items-center">
|
||||
{!selectedVoice && (
|
||||
@@ -192,7 +215,8 @@ export default function DevTTS({ sessionSubscriptionsWrapper }: Props) {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="d-flex gap-2">
|
||||
{/* Commented out notify voice improvement for now */}
|
||||
{/* <div className="d-flex gap-2">
|
||||
{selectedVoice && (
|
||||
<Button
|
||||
icon={faBell}
|
||||
@@ -201,33 +225,10 @@ export default function DevTTS({ sessionSubscriptionsWrapper }: Props) {
|
||||
className="fs-7"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="position-relative">
|
||||
<Input
|
||||
autoFocus={isMobile ? false : selectedVoice ? false : true}
|
||||
icon={faSearch}
|
||||
placeholder={"Search from 3000+ voices"}
|
||||
onChange={searchChange()}
|
||||
value={search}
|
||||
style={{ borderRadius: "0.5rem 0.5rem 0 0" }}
|
||||
/>
|
||||
{search && (
|
||||
<FontAwesomeIcon
|
||||
icon={faXmark}
|
||||
className="position-absolute opacity-75 fs-5"
|
||||
style={{
|
||||
right: "1rem",
|
||||
top: "50%",
|
||||
transform: "translateY(-50%)",
|
||||
cursor: "pointer",
|
||||
}}
|
||||
onClick={() => searchSet("")}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<div className="fy-weight-picker-preview" onClick={openModal}>
|
||||
<WeightCoverImage
|
||||
{...{
|
||||
|
||||
@@ -6,7 +6,6 @@ import { CardBadge } from "components/entities";
|
||||
import { useWeightFetch } from "hooks";
|
||||
import useWeightTypeInfo from "hooks/useWeightTypeInfo";
|
||||
import React, { useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
interface FeaturedVoiceProps {
|
||||
token: string;
|
||||
@@ -60,11 +59,8 @@ export const FeaturedVoice = ({ token, onClick }: FeaturedVoiceProps) => {
|
||||
small={true}
|
||||
/>
|
||||
</h6>
|
||||
<span className="fs-7 fw-medium">
|
||||
by{" "}
|
||||
<Link to={`/profile/${weight?.creator.display_name}`}>
|
||||
{weight?.creator.display_name}
|
||||
</Link>
|
||||
<span className="fs-7 fw-medium" style={{ opacity: 0.6 }}>
|
||||
by {weight?.creator.display_name}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user