ui: minor update list model running system monitor (#3919)
This commit is contained in:
parent
6ca6ee3fb8
commit
7a24e2d325
@ -10,8 +10,6 @@ import { isLocalEngine } from '@/utils/modelEngine'
|
|||||||
|
|
||||||
import { serverEnabledAtom } from '@/helpers/atoms/LocalServer.atom'
|
import { serverEnabledAtom } from '@/helpers/atoms/LocalServer.atom'
|
||||||
|
|
||||||
const Column = ['Model', 'Size', '']
|
|
||||||
|
|
||||||
const TableActiveModel = () => {
|
const TableActiveModel = () => {
|
||||||
const { activeModel, stateModel, stopModel } = useActiveModel()
|
const { activeModel, stateModel, stopModel } = useActiveModel()
|
||||||
|
|
||||||
@ -21,25 +19,11 @@ const TableActiveModel = () => {
|
|||||||
<div className="w-1/2">
|
<div className="w-1/2">
|
||||||
<div className="overflow-hidden border-b border-[hsla(var(--app-border))]">
|
<div className="overflow-hidden border-b border-[hsla(var(--app-border))]">
|
||||||
<table className="w-full px-8">
|
<table className="w-full px-8">
|
||||||
<thead className="w-full border-b border-[hsla(var(--app-border))] bg-[hsla(var(--tertiary-bg))]">
|
|
||||||
<tr>
|
|
||||||
{Column.map((col, i) => {
|
|
||||||
return (
|
|
||||||
<th
|
|
||||||
key={i}
|
|
||||||
className="px-4 py-2 text-left font-normal last:text-center"
|
|
||||||
>
|
|
||||||
{col}
|
|
||||||
</th>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
{activeModel && isLocalEngine(activeModel.engine) ? (
|
{activeModel && isLocalEngine(activeModel.engine) ? (
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
className="max-w-[200px] px-4 py-2 font-bold"
|
className="max-w-[200px] px-4 py-2 font-medium"
|
||||||
title={activeModel.name}
|
title={activeModel.name}
|
||||||
>
|
>
|
||||||
<p className="line-clamp-2">{activeModel.name}</p>
|
<p className="line-clamp-2">{activeModel.name}</p>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user