Improve history to load it chunk by chunk
This commit is contained in:
@@ -5,23 +5,47 @@
|
||||
display: none;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
* {
|
||||
font: @colortheme_app-font;
|
||||
}
|
||||
.cp-toolbar-history-next {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 20px;
|
||||
.cp-history-filler {
|
||||
flex: 1;
|
||||
}
|
||||
.cp-toolbar-history-previous {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 20px;
|
||||
.cp-toolbar-history-close,
|
||||
.cp-toolbar-history-revert {
|
||||
background: white;
|
||||
color: black;
|
||||
//margin-top: 5px;
|
||||
&:hover {
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
}
|
||||
.cp-toolbar-history-loadmore {
|
||||
height: 100%;
|
||||
color: black;
|
||||
width: 25px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.cp-toolbar-history-version {
|
||||
position: absolute;
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.cp-toolbar-history-goto {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
flex: 1;
|
||||
flex-basis: 80%;
|
||||
min-width: 0;
|
||||
max-width: 600px;
|
||||
input { width: 75px; }
|
||||
}
|
||||
.cp-toolbar-history-goto-input {
|
||||
@@ -29,6 +53,30 @@
|
||||
margin-left: 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.cp-toolbar-history-bar {
|
||||
width: 100%;
|
||||
background: white;
|
||||
height: 25px;
|
||||
margin: auto;
|
||||
position: relative;
|
||||
}
|
||||
.cp-toolbar-history-pos-container {
|
||||
width: ~"calc(100% - 2px)";
|
||||
height: 25px;
|
||||
position: relative;
|
||||
}
|
||||
@pos-color: #55FF55;
|
||||
.cp-toolbar-history-pos {
|
||||
width: 2px;
|
||||
height: 25px;
|
||||
background: @pos-color;
|
||||
&:after {
|
||||
content: '';
|
||||
border: 6px solid transparent;
|
||||
border-top-color: @pos-color;
|
||||
margin-left: -5px;
|
||||
}
|
||||
}
|
||||
button {
|
||||
color: inherit;
|
||||
background-color: rgba(0,0,0,0.2);
|
||||
@@ -36,14 +84,6 @@
|
||||
background-color: rgba(0,0,0,0.4);
|
||||
}
|
||||
}
|
||||
.cp-toolbar-history-close {
|
||||
background: white;
|
||||
color: black;
|
||||
margin-top: 5px;
|
||||
&:hover {
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
}
|
||||
.fa-spinner {
|
||||
font-size: 66px;
|
||||
}
|
||||
|
||||
@@ -232,12 +232,11 @@ define(function () {
|
||||
|
||||
out.historyText = "Historique";
|
||||
out.historyButton = "Afficher l'historique du document";
|
||||
out.history_next = "Voir la version suivante";
|
||||
out.history_prev = "Voir la version précédente";
|
||||
out.history_goTo = "Voir la version sélectionnée";
|
||||
out.history_next = "Version plus récente";
|
||||
out.history_prev = "Version plus ancienne";
|
||||
out.history_loadMore = "Charger davantage d'historique";
|
||||
out.history_close = "Retour";
|
||||
out.history_closeTitle = "Fermer l'historique";
|
||||
out.history_restore = "Restaurer";
|
||||
out.history_restoreTitle = "Restaurer la version du document sélectionnée";
|
||||
out.history_restorePrompt = "Êtes-vous sûr de vouloir remplacer la version actuelle du document par la version affichée ?";
|
||||
out.history_restoreDone = "Document restauré";
|
||||
|
||||
@@ -234,12 +234,10 @@ define(function () {
|
||||
|
||||
out.historyText = "History";
|
||||
out.historyButton = "Display the document history";
|
||||
out.history_next = "Go to the next version";
|
||||
out.history_prev = "Go to the previous version";
|
||||
out.history_goTo = "Go to the selected version";
|
||||
out.history_close = "Back";
|
||||
out.history_next = "Newer version";
|
||||
out.history_prev = "Older version";
|
||||
out.history_loadMore = "Load more history";
|
||||
out.history_closeTitle = "Close the history";
|
||||
out.history_restore = "Restore";
|
||||
out.history_restoreTitle = "Restore the selected version of the document";
|
||||
out.history_restorePrompt = "Are you sure you want to replace the current version of the document by the displayed one?";
|
||||
out.history_restoreDone = "Document restored";
|
||||
|
||||
Reference in New Issue
Block a user