feat: Introduce configurable icon and card sizes for document views and desktop workspace.

This commit is contained in:
2025-12-01 11:45:58 +01:00
parent fea1bf68c5
commit 033026f57c
9 changed files with 39 additions and 27 deletions
@@ -15,10 +15,11 @@ import DocumentEntry from './DocumentEntry';
interface DocumentsListRowProps extends DocumentsViewProps {
entry: DocumentsListEntry;
viewLogic: DocumentViewLogic;
iconSize?: number;
}
const DocumentsListRow: React.FC<DocumentsListRowProps> = (props) => {
const { entry } = props;
const { entry, iconSize } = props;
if (entry.type === 'folder') {
const folder = entry.folder;
@@ -35,7 +36,7 @@ const DocumentsListRow: React.FC<DocumentsListRowProps> = (props) => {
<>
<td className="thumb-cell">
<div className="thumb-icon">
<FolderIcon className="thumb-icon__image" size={32} />
<FolderIcon className="thumb-icon__image" size={iconSize || 32} />
</div>
</td>
<td className="doc-list__name">
@@ -92,6 +93,7 @@ const DocumentsListRow: React.FC<DocumentsListRowProps> = (props) => {
getDocumentAsset={props.getDocumentAsset}
alt={`Thumbnail for ${doc.title}`}
scrollRootRef={props.scrollRef}
maxSize={props.iconSize}
/>
</td>
<td className="doc-list__name">