diff --git a/ui/src/components/Checkbox.tsx b/ui/src/components/Checkbox.tsx index cdf29c5..cf9855d 100644 --- a/ui/src/components/Checkbox.tsx +++ b/ui/src/components/Checkbox.tsx @@ -12,7 +12,7 @@ const sizes = { const checkboxVariants = cva({ base: cx( - "block rounded", + "form-checkbox block rounded", // Colors "border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-800 checked:accent-blue-700 checked:dark:accent-blue-500 transition-colors", diff --git a/ui/src/routes/devices.$id.mount.tsx b/ui/src/routes/devices.$id.mount.tsx index 475b57b..6f925bf 100644 --- a/ui/src/routes/devices.$id.mount.tsx +++ b/ui/src/routes/devices.$id.mount.tsx @@ -7,7 +7,7 @@ import { LuCheck, LuUpload, } from "react-icons/lu"; -import { PlusCircleIcon , ExclamationTriangleIcon } from "@heroicons/react/20/solid"; +import { PlusCircleIcon, ExclamationTriangleIcon } from "@heroicons/react/20/solid"; import { TrashIcon } from "@heroicons/react/16/solid"; import { useNavigate } from "react-router-dom"; @@ -38,7 +38,6 @@ import { useRTCStore, } from "../hooks/stores"; - export default function MountRoute() { const navigate = useNavigate(); { @@ -284,7 +283,7 @@ function ModeSelectionView({ return (
-

+

Virtual Media Source

@@ -320,7 +319,7 @@ function ModeSelectionView({ ].map(({ label, description, value: mode, icon: Icon, tag, disabled }, index) => (
disabled ? null : setSelectedMode(mode as "browser" | "url" | "device") } @@ -365,7 +364,7 @@ function ModeSelectionView({ value={mode} disabled={disabled} checked={selectedMode === mode} - className="absolute right-4 top-4 h-4 w-4 text-blue-700" + className="absolute top-4 right-4 form-radio h-4 w-4 rounded-full text-blue-700" />
@@ -442,14 +441,14 @@ function BrowserFileView({ animationDuration: "0.7s", }} > - +
{selectedFile ? ( <>
-

+

{formatters.truncateMiddle(selectedFile.name, 40)}

@@ -460,7 +459,7 @@ function BrowserFileView({ ) : (

-

+

Click to select a file

@@ -483,7 +482,7 @@ function BrowserFileView({

Popular images - + {popularImages.map((image, index) => (
{`${image.name}
-

+

{formatters.truncateMiddle(image.name, 40)}

{image.description && ( @@ -809,7 +808,7 @@ function DeviceFileView({
-

+

No images available

@@ -827,7 +826,7 @@ function DeviceFileView({

) : ( -
+
{currentFiles.map((file, index) => ( @@ -1282,7 +1281,7 @@ function UploadFileView({
-

+

{incompleteFileName ? `Click to select "${incompleteFileName.replace(".incomplete", "")}"` : "Click to select a file"} @@ -1336,7 +1335,7 @@ function UploadFileView({

-

+

Upload successful

@@ -1422,7 +1421,7 @@ function ErrorView({

-

Mount Error

+

Mount Error

An error occurred while attempting to mount the media. Please try again. @@ -1481,8 +1480,8 @@ function PreUploadedImageItem({ }} >

-
-
+
+
{formatters.truncateMiddle(name, 45)}
@@ -1494,7 +1493,7 @@ function PreUploadedImageItem({
-
+
e.stopPropagation()} // Prevent double-firing of onSelect /> ) : ( @@ -1540,7 +1539,7 @@ function PreUploadedImageItem({ function ViewHeader({ title, description }: { title: string; description: string }) { return (
-

+

{title}

@@ -1558,7 +1557,7 @@ function UsbModeSelector({ setUsbMode: (mode: RemoteVirtualMediaState["mode"]) => void; }) { return ( -
+
diff --git a/ui/src/routes/welcome-local.mode.tsx b/ui/src/routes/welcome-local.mode.tsx index a29ee94..06ca62a 100644 --- a/ui/src/routes/welcome-local.mode.tsx +++ b/ui/src/routes/welcome-local.mode.tsx @@ -116,7 +116,7 @@ export default function WelcomeLocalModeRoute() { onChange={() => { setSelectedMode(mode as "password" | "noPassword"); }} - className="absolute top-2 right-2 h-4 w-4 text-blue-600" + className="form-radio absolute top-2 right-2 h-4 w-4 text-blue-600" />