feat: Introduce configurable icon and card sizes for document views and desktop workspace.
This commit is contained in:
@@ -112,23 +112,24 @@ const AbstractDocumentsView = <CProps extends { clearSelection: () => void; chil
|
||||
);
|
||||
};
|
||||
|
||||
export const DocumentsList: React.FC<DocumentsViewProps> = (props) => {
|
||||
export const DocumentsList: React.FC<DocumentsViewProps & { iconSize?: number }> = (props) => {
|
||||
return (
|
||||
<AbstractDocumentsView
|
||||
ContainerComponent={DocumentsListContainer}
|
||||
ItemComponent={DocumentsListRow}
|
||||
viewMode="list"
|
||||
containerProps={{ iconSize: props.iconSize }}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export const DocumentsGrid: React.FC<DocumentsViewProps & { gridIconSize?: number }> = (props) => {
|
||||
export const DocumentsGrid: React.FC<DocumentsViewProps & { iconSize?: number }> = (props) => {
|
||||
return (
|
||||
<AbstractDocumentsView
|
||||
ContainerComponent={DocumentsGridContainer}
|
||||
ItemComponent={DocumentsGridCard}
|
||||
containerProps={{ gridIconSize: props.gridIconSize }}
|
||||
containerProps={{ iconSize: props.iconSize }}
|
||||
viewMode="grid"
|
||||
{...props}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user