feat: small ui improvement (#3388)
This commit is contained in:
parent
5149a3f226
commit
b033e28304
@ -10,17 +10,17 @@ import { toGibibytes } from '@/utils/converter'
|
||||
|
||||
import { serverEnabledAtom } from '@/helpers/atoms/LocalServer.atom'
|
||||
|
||||
const Column = ['Name', 'Size', '']
|
||||
const Column = ['Model', 'Size', '']
|
||||
|
||||
const TableActiveModel = () => {
|
||||
const { activeModel, stateModel, stopModel } = useActiveModel()
|
||||
const [serverEnabled, setServerEnabled] = useAtom(serverEnabledAtom)
|
||||
|
||||
return (
|
||||
<div className="m-4 mr-0 w-1/2">
|
||||
<div className="overflow-hidden rounded-lg border border-[hsla(var(--app-border))]">
|
||||
<div className="w-1/2">
|
||||
<div className="overflow-hidden border-b border-[hsla(var(--app-border))]">
|
||||
<table className="w-full px-8">
|
||||
<thead className="w-full border-b border-[hsla(var(--app-border))]">
|
||||
<thead className="w-full border-b border-[hsla(var(--app-border))] bg-[hsla(var(--tertiary-bg))]">
|
||||
<tr>
|
||||
{Column.map((col, i) => {
|
||||
return (
|
||||
|
||||
@ -88,7 +88,7 @@ const SystemMonitor = () => {
|
||||
<div
|
||||
ref={setElementExpand}
|
||||
className={twMerge(
|
||||
'fixed bottom-9 left-[49px] z-50 flex w-[calc(100%-48px-8px)] flex-shrink-0 flex-col rounded-lg rounded-b-none border-t border-[hsla(var(--app-border))] bg-[hsla(var(--app-bg))]',
|
||||
'fixed bottom-9 left-[49px] z-50 flex w-[calc(100%-48px-8px)] flex-shrink-0 flex-col border-t border-[hsla(var(--app-border))] bg-[hsla(var(--app-bg))]',
|
||||
showFullScreen && 'h-[calc(100%-63px)]',
|
||||
reduceTransparent && 'w-[calc(100%-48px)] rounded-none'
|
||||
)}
|
||||
@ -128,7 +128,7 @@ const SystemMonitor = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex h-full gap-4">
|
||||
<div className="flex h-full gap-y-4">
|
||||
<TableActiveModel />
|
||||
|
||||
<div className="w-1/2 border-l border-[hsla(var(--app-border))] p-4">
|
||||
|
||||
@ -57,7 +57,7 @@ export default function AppearanceOptions() {
|
||||
<h6 className="font-semibold capitalize">Appearance</h6>
|
||||
</div>
|
||||
<p className="font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Select a color theme
|
||||
Select a color theme.
|
||||
</p>
|
||||
</div>
|
||||
<Select
|
||||
|
||||
@ -23,11 +23,11 @@ const availableHotkeys = [
|
||||
},
|
||||
{
|
||||
combination: 'Enter',
|
||||
description: 'Send a message',
|
||||
description: 'Send a message (in input field)',
|
||||
},
|
||||
{
|
||||
combination: 'Shift Enter',
|
||||
description: 'Insert new line in input box',
|
||||
description: 'Insert a new line (in input field)',
|
||||
},
|
||||
{
|
||||
combination: 'Arrow Up',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user