Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): align grouped LLM table columns

Josuéf08de55cd4b5
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index b1d42b2ae..56b9cb846 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -11248,9 +11248,17 @@ td.cu-registry-description {
gap: var(--cu-space-2);
}
+.cu-llm-model-table,
+.cu-llm-review-table {
+ --cu-llm-group-provider-width: calc(var(--cu-space-7) * 7);
+ --cu-llm-group-models-width: calc(var(--cu-space-7) * 3);
+ --cu-llm-group-actions-width: calc(var(--cu-space-7) * 4);
+
+ table-layout: auto;
+}
+
.cu-llm-model-table {
min-width: 68rem;
- table-layout: fixed;
}
.cu-llm-models-layout {
@@ -11270,7 +11278,21 @@ td.cu-registry-description {
.cu-llm-review-table {
min-width: 48rem;
- table-layout: fixed;
+}
+
+.cu-llm-model-table > thead > tr > th:first-child,
+.cu-llm-review-table > thead > tr > th:first-child {
+ width: var(--cu-llm-group-provider-width);
+}
+
+.cu-llm-model-table > thead > tr > th:nth-child(2),
+.cu-llm-review-table > thead > tr > th:nth-child(2) {
+ width: var(--cu-llm-group-models-width);
+}
+
+.cu-llm-model-table > thead > tr > th:last-child,
+.cu-llm-review-table > thead > tr > th:last-child {
+ width: var(--cu-llm-group-actions-width);
}
.cu-llm-review-table .cu-llm-model-row > td:first-child {
@@ -11389,12 +11411,11 @@ td.cu-registry-description {
}
.cu-llm-model-group__toggle {
- display: flex;
+ position: relative;
+ display: block;
width: 100%;
min-height: calc(var(--cu-space-5) * 2.6);
- align-items: center;
- gap: var(--cu-space-3);
- padding: var(--cu-space-3) var(--cu-space-4);
+ padding: var(--cu-space-3);
border: 0;
background: transparent;
color: var(--cu-text);
@@ -11409,14 +11430,39 @@ td.cu-registry-description {
}
.cu-llm-model-group .eft-table-group__indicator {
+ position: absolute;
+ top: 50%;
+ left: var(--cu-space-3);
display: inline-flex;
- flex: 0 0 auto;
color: var(--cu-text-muted);
+ transform: translateY(-50%);
+}
+
+.cu-llm-model-group__toggle[aria-expanded='true'] .eft-table-group__indicator {
+ transform: translateY(-50%) rotate(90deg);
+}
+
+.cu-llm-model-group__toggle .eft-table-group__summary {
+ display: grid;
+ width: 100%;
+ grid-template-columns:
+ calc(var(--cu-space-7) + var(--cu-space-3))
+ minmax(0, calc(var(--cu-llm-group-provider-width) - var(--cu-space-7) - var(--cu-space-3)))
+ var(--cu-llm-group-models-width) minmax(0, 1fr) var(--cu-llm-group-actions-width);
+ align-items: center;
+}
+
+.cu-llm-model-group__toggle .cu-llm-provider-icon {
+ justify-self: end;
}
.cu-llm-model-group__provider {
- min-width: 10rem;
+ min-width: 0;
+ padding-left: var(--cu-space-2);
+ overflow: hidden;
font-weight: 600;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.cu-llm-model-group__count {
@@ -11441,7 +11487,8 @@ td.cu-registry-description {
}
.cu-llm-model-group__action {
- margin-left: auto;
+ justify-self: end;
+ margin-left: 0;
font-weight: 600;
white-space: nowrap;
}
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 9877eade8..0539a8260 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.581",
+ "version": "0.1.582",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.581",
+ "version": "0.1.582",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index ea964a647..9a5d2a3b3 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.581",
+ "version": "0.1.582",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",