fix config cards clipping content at narrow window widths (#7146)
This commit is contained in:
parent
030f12753c
commit
3be49070cc
4 changed files with 4 additions and 18 deletions
|
|
@ -683,11 +683,7 @@ export function DatasetSection() {
|
|||
title={t("studio.dataset.title")}
|
||||
description={t("studio.dataset.description")}
|
||||
accent="indigo"
|
||||
className={`dark:shadow-border ${
|
||||
advancedOpen || (datasetSource === "upload" && uploadedFile)
|
||||
? "min-h-studio-config-column"
|
||||
: "h-studio-config-column"
|
||||
}`}
|
||||
className="dark:shadow-border min-h-studio-config-column"
|
||||
>
|
||||
<div className="flex min-w-0 flex-col gap-4">
|
||||
{(() => {
|
||||
|
|
|
|||
|
|
@ -192,7 +192,6 @@ export function ParamsSection(): ReactElement {
|
|||
const showVisionImageSize = showVisionLora && !isDeepseekOcr;
|
||||
const [loraOpen, setLoraOpen] = useState(false);
|
||||
const [hyperOpen, setHyperOpen] = useState(false);
|
||||
const needsExpandedHeight = isCpt || (isLora && loraOpen) || hyperOpen;
|
||||
const [ctxInput, setCtxInput] = useState(String(store.contextLength));
|
||||
const ctxAnchorRef = useRef<HTMLDivElement>(null);
|
||||
const ctxItems = CONTEXT_LENGTHS.map(String);
|
||||
|
|
@ -233,11 +232,7 @@ export function ParamsSection(): ReactElement {
|
|||
title={t("studio.params.title")}
|
||||
description={t("studio.params.description")}
|
||||
accent="orange"
|
||||
className={`${
|
||||
needsExpandedHeight
|
||||
? "min-h-studio-config-column"
|
||||
: "h-studio-config-column"
|
||||
} duration-150`}
|
||||
className="min-h-studio-config-column"
|
||||
>
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="flex flex-col gap-2">
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ export function TrainingSection() {
|
|||
((!store.isVisionModel && store.isDatasetImage === true) ||
|
||||
(!store.isAudioModel && store.isDatasetAudio === true));
|
||||
const configValidation = validateTrainingConfig(store);
|
||||
const hasMessage = !!(startError || isIncompatible || (!configValidation.ok && configValidation.message));
|
||||
const fileInputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
const handleFileUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
|
@ -125,7 +124,7 @@ export function TrainingSection() {
|
|||
title={t("studio.training.title")}
|
||||
description={t("studio.training.description")}
|
||||
accent="blue"
|
||||
className={hasMessage ? "min-h-studio-config-column" : "h-studio-config-column"}
|
||||
className="min-h-studio-config-column"
|
||||
>
|
||||
<div className="flex flex-col gap-4">
|
||||
{/* Loss chart */}
|
||||
|
|
|
|||
|
|
@ -2048,15 +2048,11 @@ html[data-chat-font] .aui-root {
|
|||
}
|
||||
}
|
||||
|
||||
/* Fine-tuning Studio: equal default height, expandable when needed (md+) */
|
||||
/* Fine-tuning Studio: equal minimum card height, grows with content (md+) */
|
||||
.min-h-studio-config-column {
|
||||
@apply md:min-h-[520px];
|
||||
}
|
||||
|
||||
.h-studio-config-column {
|
||||
@apply md:h-[520px];
|
||||
}
|
||||
|
||||
[data-streamdown="unordered-list"] {
|
||||
list-style-type: disc;
|
||||
list-style-position: outside;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue