Skip to content

Commit

Permalink
enhancement: update responsive setting and my model page (#4533)
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Jan 28, 2025
1 parent 6dd090a commit be6de58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions web/screens/Settings/Advanced/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ const Advanced = ({ setSubdir }: { setSubdir: (subdir: string) => void }) => {
<ScrollArea className="h-full w-full px-4">
<div className="block w-full py-4">
{/* Experimental */}
<div className="flex w-full flex-col items-start justify-between gap-4 border-b border-[hsla(var(--app-border))] py-4 first:pt-0 last:border-none sm:flex-row">
<div className="flex-shrink-0 space-y-1">
<div className="flex w-full flex-row items-start justify-between gap-4 border-b border-[hsla(var(--app-border))] py-4 first:pt-0 last:border-none">
<div className="space-y-1">
<div className="flex gap-x-2">
<h6 className="font-semibold capitalize">Experimental Mode</h6>
</div>
Expand All @@ -222,11 +222,13 @@ const Advanced = ({ setSubdir }: { setSubdir: (subdir: string) => void }) => {
performance. Enable with caution.
</p>
</div>
<Switch
data-testid="experimental-switch"
checked={experimentalEnabled}
onChange={updateExperimentalEnabled}
/>
<div className="flex-shrink-0">
<Switch
data-testid="experimental-switch"
checked={experimentalEnabled}
onChange={updateExperimentalEnabled}
/>
</div>
</div>

{/* CPU / GPU switching */}
Expand Down Expand Up @@ -428,7 +430,7 @@ const Advanced = ({ setSubdir }: { setSubdir: (subdir: string) => void }) => {

{/* Proxy Settings Link */}
<div className="flex w-full flex-col items-start justify-between gap-4 border-b border-[hsla(var(--app-border))] py-4 first:pt-0 last:border-none sm:flex-row">
<div className="flex w-full cursor-pointer items-center justify-between">
<div className="flex w-full cursor-pointer items-start justify-between">
<div className="space-y-1">
<div className="flex gap-x-2">
<h6 className="font-semibold capitalize">HTTPS Proxy</h6>
Expand Down
2 changes: 1 addition & 1 deletion web/screens/Settings/MyModels/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const MyModels = () => {

return (
<div className="my-6" key={i}>
<div className="flex flex-col items-start justify-start gap-2 sm:flex-row sm:items-center sm:justify-between">
<div className="flex flex-row items-center justify-between gap-2">
<div
className="mb-1 mt-3 flex cursor-pointer items-center gap-2"
onClick={onClickChevron}
Expand Down

0 comments on commit be6de58

Please sign in to comment.