Skip to content

Commit

Permalink
Add hint on hover for the thumbnail editing inside the detail panel (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
luorlandini authored Jun 29, 2021
1 parent 83bdb7c commit 70f3387
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import React, { useState, useEffect } from 'react';
import Thumbnail from '@mapstore/framework/components/misc/Thumbnail';
import FaIcon from '@js/components/home/FaIcon';
import Message from '@mapstore/framework/components/I18N/Message';

const ThumbnailEditable = ({
defaultImage,
Expand All @@ -29,7 +30,7 @@ const ThumbnailEditable = ({
setThumbnail(data);
onEdit(data);
}}

message={<Message msgId="gnviewer.uploadImage"/>}
/>
<div className={`icon-image-preview`} >
<FaIcon name="file-upload" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
"editMetadata": "Metadaten bearbeiten",
"editStyle": "Stil Bearbeiten",
"editData": "Daten Bearbeiten",
"backToDataset": "Zurück zum Datensatz"
"backToDataset": "Zurück zum Datensatz",
"uploadImage": "Klicken oder ziehen Sie ein Bild und legen Sie es ab"
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@
"errors": {
"noPermissions": "You dont have permissions to add a geostory"
}

},
"gnviewer":{
"edit": "Edit",
"details": "Details",
"editMetadata": "Edit Metadata",
"editStyle": "Edit Style",
"editData": "Edit Data",
"backToDataset": "Back to Dataset"
"backToDataset": "Back to Dataset",
"uploadImage": "Click or drag and drop an image"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@
"errors": {
"noPermissions": "No tienes permisos para agregar una geohistoria"
}

},
"gnviewer":{
"edit": "Editar",
"details": "Detalles",
"editMetadata": "Editar Metadatos",
"editStyle": "Editar Estilo",
"editData": "Editar Datos",
"backToDataset": "Volver al Conjunto de Datos"
"backToDataset": "Volver al Conjunto de Datos",
"uploadImage": "Haga clic o arrastre y suelte una imagen"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
"editMetadata": "Modifier les Métadonnées",
"editStyle": "Modifier le Style",
"editData": "Modifier les Données",
"backToDataset": "Retour à l'Ensemble de Données"
"backToDataset": "Retour à l'Ensemble de Données",
"uploadImage": "Cliquez ou faites glisser et déposez une image"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
"editMetadata": "Modifica Metadati",
"editStyle": "Modifica Stile",
"editData": "Modifica Dati",
"backToDataset": "Torna al Dataset"
"backToDataset": "Torna al Dataset",
"uploadImage": "Clicca o trascina un'immagine"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 4.5em;
font-size: 3em;
opacity: 0.5;
z-index: 0;
pointer-events: none;
.fa-file-upload{
padding-top: 2em;
}

}
}
}
Expand Down

0 comments on commit 70f3387

Please sign in to comment.