Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(models): image, video and Mac media tiles get the Details button for their cut description

purple231b15a9aa35
diff --git a/src/components/models/DescriptionDetails.tsx b/src/components/models/DescriptionDetails.tsx
new file mode 100644
index 00000000..133469c2
--- /dev/null
+++ b/src/components/models/DescriptionDetails.tsx
@@ -0,0 +1,31 @@
+import { useState } from 'react'
+import { Info } from 'lucide-react'
+import { Modal } from '../ui/Modal'
+import { ICON_SM } from '../ui/icon-size'
+
+/**
+ * The Details button of a tile whose description is cut to a line or two,
+ * and the dialog with the whole text. Chat tiles have their own (DiscoverModels,
+ * with tags and the image part); the image, video, add-on, Mac media and
+ * CivitAI tiles had none, and the rest of their description was out of reach
+ * (Discord #bug-reports 30.10.2026).
+ */
+export function DescriptionDetails({ name, description, className }: { name: string; description: string; className: string }) {
+ const [open, setOpen] = useState(false)
+ return (
+ <>
+ <button
+ type="button"
+ onClick={() => setOpen(true)}
+ className={className}
+ title="Details"
+ aria-label={`Details for ${name}`}
+ >
+ <Info size={ICON_SM} />
+ </button>
+ <Modal open={open} onClose={() => setOpen(false)} title={name}>
+ <p className="t-small text-gray-700 dark:text-gray-200 leading-relaxed whitespace-pre-line" data-testid="description-details">{description}</p>
+ </Modal>
+ </>
+ )
+}
diff --git a/src/components/models/MacMediaTile.tsx b/src/components/models/MacMediaTile.tsx
index 194520b7..e9e141d8 100644
--- a/src/components/models/MacMediaTile.tsx
+++ b/src/components/models/MacMediaTile.tsx
@@ -13,6 +13,7 @@ import { splitTileNotes } from './macTileNotes'
import { fitsMacMemory, memoryNeedGb } from '../../lib/mac-memory-fit'
import { macGetBytes } from '../../lib/mac-setup-sizes'
import { CloudOfferLine } from '../cloud/CloudOffer'
+import { DescriptionDetails } from './DescriptionDetails'
import type { CloudOfferTask } from '../../lib/cloud-offer'
// ─── Mac media tile ─────────────────────────────────────────────────
@@ -119,6 +120,9 @@ export function MacMediaTile({ model, memoryGb, state, onGet, onCancel, onRemove
</p>
)}
</div>
+ {model.description && (
+ <DescriptionDetails name={model.name} description={model.description} className="lu-control lu-control--icon -mt-1" />
+ )}
<button
onClick={() => onOpenUrl(`https://huggingface.co/${model.repo}`)}
className="lu-control lu-control--icon -mr-1.5 -mt-1"
diff --git a/src/components/models/ModelTiles.tsx b/src/components/models/ModelTiles.tsx
index 40470f9c..58f92558 100644
--- a/src/components/models/ModelTiles.tsx
+++ b/src/components/models/ModelTiles.tsx
@@ -21,6 +21,7 @@ import { bundleGetPlan } from '../../lib/bundle-state'
import { ICON_SM } from '../ui/icon-size'
import { downloadSizeGB, gbOf } from '../../lib/image-part'
import { CloudOfferLine } from '../cloud/CloudOffer'
+import { DescriptionDetails } from './DescriptionDetails'
import type { CloudOfferTask } from '../../lib/cloud-offer'
// ─── Hardware fit ───────────────────────────────────────────────────
@@ -801,6 +802,9 @@ export function BundleTile(props: BundleTileProps) {
)}
{bundleOffersCloud(fit, props) && <CloudOfferLine task={props.cloudTask!} sharedMemory={props.sharedMemory} />}
</div>
+ {bundle.description && (
+ <DescriptionDetails name={bundle.name} description={bundle.description} className="lu-control lu-control--icon -mt-1" />
+ )}
{bundle.url && (
<button
onClick={() => onOpenUrl(bundle.url!)}
diff --git a/src/components/models/__tests__/a-cut-description-has-details.test.tsx b/src/components/models/__tests__/a-cut-description-has-details.test.tsx
new file mode 100644
index 00000000..e775d0e3
--- /dev/null
+++ b/src/components/models/__tests__/a-cut-description-has-details.test.tsx
@@ -0,0 +1,65 @@
+/**
+ * @vitest-environment jsdom
+ *
+ * Discord #bug-reports, 30.10.2026: the Details button that shows a model's
+ * whole description existed on chat tiles only. Image, video and add-on
+ * bundles (both faces) and the Mac media tiles cut their description at two
+ * lines, and the rest could not be read anywhere in LU. Each of them has the
+ * button now, and the dialog holds the full text.
+ *
+ * Run: npx vitest run src/components/models/__tests__/a-cut-description-has-details.test.tsx
+ */
+import { describe, it, expect, afterEach } from 'vitest'
+import { render, screen, fireEvent, cleanup, within } from '@testing-library/react'
+import type { ReactElement } from 'react'
+import { BundleTile } from '../ModelTiles'
+import { ClassicBundleTile } from '../skin/ClassicTiles'
+import { MacMediaTile } from '../MacMediaTile'
+import { getImageBundles, getVideoBundles } from '../../../api/model-bundles'
+
+afterEach(cleanup)
+
+const noop = () => {}
+// The longest catalogue descriptions: those two lines cut.
+const longest = (list: ReturnType<typeof getImageBundles>) => [...list].sort((a, b) => (b.description?.length ?? 0) - (a.description?.length ?? 0))[0]
+const image = longest(getImageBundles())
+const video = longest(getVideoBundles())
+
+const bundleProps = (bundle: typeof image) => ({
+ bundle, vramGb: 16, complete: false, downloading: false, hasErrors: false,
+ onInstall: noop, onRetry: noop, onClear: noop, onOpenUrl: noop,
+})
+
+const MAC_TEXT = 'A video model for the Mac. ' + 'It renders short clips from a prompt or a start image and keeps the motion steady over the whole length. '.repeat(4)
+
+function opensFullText(ui: ReactElement, name: string, description: string) {
+ render(ui)
+ fireEvent.click(screen.getByRole('button', { name: `Details for ${name}` }))
+ const dialog = screen.getByRole('dialog')
+ expect(within(dialog).getByTestId('description-details').textContent).toBe(description)
+}
+
+describe('a tile that cuts its description offers the whole text', () => {
+ it('the catalogue really has long descriptions here', () => {
+ expect(image.description!.length).toBeGreaterThan(120)
+ expect(video.description!.length).toBeGreaterThan(120)
+ })
+
+ it('image bundle, Mac face', () => opensFullText(<BundleTile {...bundleProps(image)} />, image.name, image.description!))
+ it('video bundle, Mac face', () => opensFullText(<BundleTile {...bundleProps(video)} />, video.name, video.description!))
+ it('image bundle, classic face', () => opensFullText(<ClassicBundleTile {...bundleProps(image)} />, image.name, image.description!))
+ it('video bundle, classic face', () => opensFullText(<ClassicBundleTile {...bundleProps(video)} />, video.name, video.description!))
+
+ it('Mac media tile', () => opensFullText(
+ <MacMediaTile
+ model={{ id: 'm', name: 'Mac Video', repo: 'x/y', sizeBytes: 1e9, minRamGB: 16, unfiltered: false, description: MAC_TEXT }}
+ memoryGb={48} state={{ kind: 'idle' }} onGet={noop} onCancel={noop} onRemove={noop} onOpenUrl={noop}
+ />,
+ 'Mac Video', MAC_TEXT,
+ ))
+
+ it('a bundle without a description has no empty Details', () => {
+ render(<BundleTile {...bundleProps({ ...image, description: '' })} />)
+ expect(screen.queryByRole('button', { name: /^Details for/ })).toBeNull()
+ })
+})
diff --git a/src/components/models/skin/ClassicTiles.tsx b/src/components/models/skin/ClassicTiles.tsx
index 20837bde..320a79e2 100644
--- a/src/components/models/skin/ClassicTiles.tsx
+++ b/src/components/models/skin/ClassicTiles.tsx
@@ -22,6 +22,7 @@ import {
type ModelTileProps, type BundleTileProps,
} from '../ModelTiles'
import { CloudOfferLine } from '../../cloud/CloudOffer'
+import { DescriptionDetails } from '../DescriptionDetails'
// ─── Drei Rollen, drei Erscheinungen ────────────────────────────────
//
@@ -289,6 +290,13 @@ export function ClassicBundleTile(props: BundleTileProps) {
)}
{bundleOffersCloud(fit, props) && <CloudOfferLine task={props.cloudTask!} sharedMemory={props.sharedMemory} />}
</div>
+ {bundle.description && (
+ <DescriptionDetails
+ name={bundle.name}
+ description={bundle.description}
+ className="shrink-0 p-1 rounded-md hover:bg-gray-200 dark:hover:bg-white/10 text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 transition-colors"
+ />
+ )}
{bundle.url && (
<button
onClick={() => onOpenUrl(bundle.url!)}