fix: modal responsive import model (#3467)

This commit is contained in:
Faisal Amir 2024-08-27 14:58:56 +07:00 committed by GitHub
parent e4115f307b
commit 17653460b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
const DEFAULT_MIN_WIDTH = 400
const DEFAULT_MIN_HEIGHT = 300
const DEFAULT_MIN_HEIGHT = 600
export const mainWindowConfig: Electron.BrowserWindowConstructorOptions = {
skipTaskbar: false,

View File

@ -29,7 +29,7 @@ const ModelDownloadList = () => {
return (
<div className="flex h-[500px] flex-1 flex-col">
<h1 className="mb-3 font-semibold">Available Versions</h1>
<ScrollArea className="w-full md:flex-1">
<ScrollArea className="w-full lg:flex-1">
{ggufModels.map((model, index) => {
if (!model.downloadUrl) return null
return (

View File

@ -72,7 +72,7 @@ const ModelSegmentInfo = () => {
</div>
<HeaderInfo title="Tags">
<div className="mt-2 flex flex-wrap gap-x-1 gap-y-1">
<div className="mt-2 flex h-14 flex-wrap gap-x-1 gap-y-1 overflow-auto lg:h-auto">
{importingHuggingFaceRepoData.tags.map((tag) => (
<Badge variant="soft" key={tag} title={tag} className="mt-1">
<span className="line-clamp-1">{tag}</span>