improve gui

This commit is contained in:
w-okada 2023-08-06 09:57:58 +09:00
parent 1ba260e9b8
commit 56944ad594
5 changed files with 73 additions and 63 deletions

View File

@ -0,0 +1 @@
onnxdirectML-cuda

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
onnxdirectML-cuda

View File

@ -41,6 +41,7 @@ export const ConvertArea = (props: ConvertProps) => {
const gpuSelect =
edition.indexOf("onnxdirectML-cuda") >= 0 ? (
<>
<div className="config-sub-area-control">
<div className="config-sub-area-control-title">GPU(dml):</div>
<div className="config-sub-area-control-field">
@ -54,7 +55,7 @@ export const ConvertArea = (props: ConvertProps) => {
}}
className={cpuClassName}
>
cpu
<span className="config-sub-area-button-text-small">cpu</span>
</div>
<div
onClick={async () => {
@ -65,7 +66,7 @@ export const ConvertArea = (props: ConvertProps) => {
}}
className={gpu0ClassName}
>
gpu-0
<span className="config-sub-area-button-text-small">gpu0</span>
</div>
<div
onClick={async () => {
@ -76,7 +77,7 @@ export const ConvertArea = (props: ConvertProps) => {
}}
className={gpu1ClassName}
>
gpu-1
<span className="config-sub-area-button-text-small">gpu1</span>
</div>
<div
onClick={async () => {
@ -87,7 +88,7 @@ export const ConvertArea = (props: ConvertProps) => {
}}
className={gpu2ClassName}
>
gpu-2
<span className="config-sub-area-button-text-small">gpu2</span>
</div>
<div
onClick={async () => {
@ -98,14 +99,17 @@ export const ConvertArea = (props: ConvertProps) => {
}}
className={gpu3ClassName}
>
gpu-3
<span className="config-sub-area-button-text-small">gpu3</span>
</div>
<div>
<div className="config-sub-area-control">
<span className="config-sub-area-button-text-small">
<a href="https://github.com/w-okada/voice-changer/issues/410">more info</a>
</span>
</div>
</div>
</div>
</div>
</>
) : (
<div className="config-sub-area-control">
<div className="config-sub-area-control-title">GPU:</div>

View File

@ -1562,6 +1562,10 @@ audio::-webkit-media-controls-overlay-enclosure{
height: 1.2rem;
padding-left: 2px;
padding-right: 2px;
white-space: nowrap;
}
.config-sub-area-button-text-small {
font-size: 0.5rem;
}
}
.config-sub-area-control-field-auido-io {