Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: finetunning the milkdown component

Ilian Sapundshiev088415b02d7f
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsx
index 28853d10f..f4f7205d4 100644
--- a/app/components/EntryProperties.tsx
+++ b/app/components/EntryProperties.tsx
@@ -889,6 +889,15 @@ function EntryProperties(props: Props) {
toggleEditDescriptionField();
}
}}
+ style={{
+ border: '1px solid lightgray',
+ borderRadius: 5,
+ padding: 2,
+ minHeight: 50,
+ maxHeight: 250,
+ // @ts-ignore
+ overflowY: AppConfig.isFirefox ? 'auto' : 'overlay'
+ }}
>
<MilkdownEditor
ref={fileDescriptionRef}
diff --git a/app/components/menus/DirectoryMenu.tsx b/app/components/menus/DirectoryMenu.tsx
index a918f1760..ce7da6681 100644
--- a/app/components/menus/DirectoryMenu.tsx
+++ b/app/components/menus/DirectoryMenu.tsx
@@ -112,7 +112,7 @@ function DirectoryMenu(props: Props) {
selectedEntries,
currentLocation,
locations,
- showNotification,
+ showNotification
} = props;
function copySharingLink() {
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsx
index 7ef773f82..3f9eb55fe 100644
--- a/app/perspectives/grid-perspective/components/GridPagination.tsx
+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx
@@ -522,30 +522,21 @@ function GridPagination(props: Props) {
</Grid>
)}
{showDescription && currentDirectoryDescription && (
- <Grid item xs={12}>
+ <Grid
+ item
+ xs={12}
+ style={{
+ backgroundColor: theme.palette.background.default,
+ marginLeft: 25,
+ marginRight: 10,
+ borderRadius: 5
+ }}
+ >
<MilkdownEditor
content={currentDirectoryDescription}
readOnly={true}
dark={false}
/>
- {/*<Typography
- style={{
- display: 'block',
- padding: 10,
- paddingTop: 0,
- margin: '15px 10px 5px 25px',
- background: alpha(theme.palette.background.default, 0.9),
- borderRadius: 8,
- overflow: 'auto',
- color: theme.palette.text.primary
- }}
- role="button"
- id="descriptionArea"
- dangerouslySetInnerHTML={{
- // eslint-disable-next-line no-nested-ternary
- __html: descriptionHTML
- }}
- />*/}
</Grid>
)}
</Grid>
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index 68522913b..6d1a8cc6c 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -50,11 +50,12 @@ import IOActions from '-/reducers/io-actions';
import {
actions as AppActions,
getDirectoryMeta,
- getLastSelectedEntry, getLastSelectedEntryPath,
+ getLastSelectedEntry,
+ getLastSelectedEntryPath,
getSelectedEntries,
isDeleteMultipleEntriesDialogOpened,
isReadOnlyMode
-} from "-/reducers/app";
+} from '-/reducers/app';
import TaggingActions from '-/reducers/tagging-actions';
import CellContent from './CellContent';
import MainToolbar from './MainToolbar';
@@ -799,7 +800,9 @@ function GridPerspective(props: Props) {
openRenameDirectoryDialog={props.openRenameEntryDialog}
openDirectory={props.openDirectory}
openFsEntry={props.openFsEntry}
- perspectiveMode={props.lastSelectedEntryPath !== props.currentDirectoryPath}
+ perspectiveMode={
+ props.lastSelectedEntryPath !== props.currentDirectoryPath
+ }
currentLocation={props.currentLocation}
locations={props.locations}
/>
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 7a2a8758e..1b772a320 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -1893,9 +1893,7 @@ export const actions = {
});
}
},
- openEntry: (path: string) => (
- dispatch: (action) => void
- ) => {
+ openEntry: (path: string) => (dispatch: (action) => void) => {
return getAllPropertiesPromise(path)
.then((fsEntry: TS.FileSystemEntry) =>
dispatch(actions.openFsEntry(fsEntry))