feat: add priority demotion controls
This commit is contained in:
@@ -1016,8 +1016,8 @@
|
||||
}
|
||||
|
||||
.platformLimitTable .shTableRow {
|
||||
grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 0.95fr) 150px 170px 140px 132px 132px;
|
||||
min-width: 1064px;
|
||||
grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 0.9fr) 160px 132px 150px 170px 140px 132px;
|
||||
min-width: 1224px;
|
||||
}
|
||||
|
||||
.platformLimitTable .shTableHead,
|
||||
@@ -1113,6 +1113,143 @@
|
||||
background: var(--destructive);
|
||||
}
|
||||
|
||||
.platformPriorityCell {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
gap: 7px;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.platformPriorityCell .rateMetricCell small {
|
||||
overflow: visible;
|
||||
line-height: 1.35;
|
||||
text-overflow: clip;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.priorityDemotionTrigger {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
text-align: left;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.priorityAdjustButton {
|
||||
justify-self: start;
|
||||
min-height: 22px;
|
||||
padding-inline: 8px;
|
||||
border-color: var(--border);
|
||||
color: var(--text-normal);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.priorityDemotionAntPopover {
|
||||
z-index: 1200;
|
||||
}
|
||||
|
||||
.priorityDemotionPopover {
|
||||
display: grid;
|
||||
width: min(36rem, calc(100vw - 2rem));
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.priorityDemotionHeader,
|
||||
.priorityDemotionItemHeader {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.priorityDemotionHeader {
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
.priorityDemotionHeader strong,
|
||||
.priorityDemotionItemHeader strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.priorityDemotionItem {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
padding-bottom: 0.6rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.priorityDemotionItem:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.priorityDemotionItem small,
|
||||
.priorityDemotionEmpty {
|
||||
color: var(--text-soft);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.priorityDemotionError {
|
||||
color: var(--destructive);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.platformPriorityDialog {
|
||||
width: min(30rem, calc(100vw - 2rem));
|
||||
}
|
||||
|
||||
.platformPriorityDialogBody {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary,
|
||||
.platformPriorityDialogMetrics {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary {
|
||||
padding: 0.75rem;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary span:last-child {
|
||||
justify-items: end;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary strong {
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
.platformPriorityDialogSummary small,
|
||||
.platformPriorityDialogMetrics {
|
||||
color: var(--muted-foreground);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.platformModelToolbar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 0.6fr) minmax(260px, 1fr);
|
||||
|
||||
Reference in New Issue
Block a user