Skip to content

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

optimizing file description vizualization

Ilian Sapundshievb73ee916db71
diff --git a/app/components/EntryProperties.js b/app/components/EntryProperties.js
index f2d711454..4a9c9fbc2 100644
--- a/app/components/EntryProperties.js
+++ b/app/components/EntryProperties.js
@@ -517,16 +517,14 @@ class EntryProperties extends Component<Props, State> {
onChange={e => this.handleInputChange(e)}
/>
) : (
- <div
+ <Typography
role="button"
id="descriptionArea"
dangerouslySetInnerHTML={{
__html:
description !== ''
? marked(description)
- : `<span style="color: rgba(0, 0, 0, 0.38)">${i18n.t(
- 'core:addDescription'
- )}</span>`
+ : i18n.t('core:addDescription')
}}
onClick={() => {
if (!isEditDescription) {
@@ -535,7 +533,7 @@ class EntryProperties extends Component<Props, State> {
}}
>
{/* set dynamically HTML */}
- </div>
+ </Typography>
)}
</FormControl>
</div>