зеркало из https://github.com/nextcloud/deck.git
Add save indicator for descriptions
This commit is contained in:
Родитель
461269d7d2
Коммит
b841496108
|
@ -436,13 +436,23 @@
|
||||||
#card-dates span {
|
#card-dates span {
|
||||||
}
|
}
|
||||||
|
|
||||||
#card-description h3 {
|
#card-description > h3 {
|
||||||
border-bottom: 1px solid #333333;
|
border-bottom: 1px solid #333333;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.save-indicator {
|
||||||
|
background-color: #009900;
|
||||||
|
color: #ffffff;
|
||||||
|
border-radius: 3px;
|
||||||
|
float:right;
|
||||||
|
padding:1px 10px;
|
||||||
|
font-size: 8pt !important;
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
#card-description textarea {
|
#card-description textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
@ -549,10 +559,16 @@
|
||||||
|
|
||||||
/* color selector */
|
/* color selector */
|
||||||
|
|
||||||
|
.colorselect {
|
||||||
|
overflow: hidden;
|
||||||
|
clear:both;
|
||||||
|
padding-top:4px;
|
||||||
|
padding-left: 4px;
|
||||||
|
}
|
||||||
.colorselect .color {
|
.colorselect .color {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
width: 26px;
|
width: 27px;
|
||||||
height: 26px;
|
height: 27px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -561,16 +577,14 @@
|
||||||
.colorselect .selected {
|
.colorselect .selected {
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
border: 1px solid #333333;
|
border: 1px solid #333333;
|
||||||
width: 26px;
|
width: 27px;
|
||||||
height: 26px;
|
height: 27px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#boardlist {
|
#boardlist {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#boardlist td .board-bullet {
|
#boardlist td .board-bullet {
|
||||||
|
@ -731,6 +745,8 @@ button:hover {
|
||||||
|
|
||||||
.ui-select-container {
|
.ui-select-container {
|
||||||
background-color: #fafafa !important;
|
background-color: #fafafa !important;
|
||||||
|
border: 1px solid #fafafa;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-select-container.open {
|
.ui-select-container.open {
|
||||||
|
@ -790,38 +806,57 @@ button:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#markdown {
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
#markdown p {
|
#markdown p {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
#markdown * {
|
||||||
|
white-space: normal;
|
||||||
|
word-wrap:break-word;
|
||||||
|
word-wrap: break-word; /* All browsers since IE 5.5+ */
|
||||||
|
overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */
|
||||||
|
}
|
||||||
|
|
||||||
#markdown ol {
|
#markdown a {
|
||||||
|
color: #666666;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#markdown ol, #markdown ul {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown ul {
|
#markdown ul {
|
||||||
margin-left: 20px;
|
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown h1 {
|
#markdown h1 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown h2 {
|
#markdown h2 {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown h3 {
|
#markdown h3 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown h4 {
|
#markdown h4 {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown h6 {
|
#markdown h6 {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#markdown pre {
|
#markdown pre {
|
||||||
|
|
|
@ -63,8 +63,10 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
$scope.cardUpdate = function(card) {
|
$scope.cardUpdate = function(card) {
|
||||||
CardService.update(CardService.getCurrent());
|
CardService.update(CardService.getCurrent()).then(function(data) {
|
||||||
$scope.status.cardEditDescription = false;
|
$scope.status.cardEditDescription = false;
|
||||||
|
$('#card-description .save-indicator').fadeIn(500).fadeOut(1000);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.labelAssign = function(element, model) {
|
$scope.labelAssign = function(element, model) {
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
</div>//-->
|
</div>//-->
|
||||||
|
|
||||||
<div id="card-description">
|
<div id="card-description">
|
||||||
<h3>Description</h3>
|
<h3>Description<div class="save-indicator"><?php p($l->t('Saved')); ?></div></h3>
|
||||||
<textarea elastic ng-if="status.cardEditDescription"
|
<textarea elastic ng-if="status.cardEditDescription"
|
||||||
placeholder="Enter your description here ..."
|
placeholder="Enter your description here ..."
|
||||||
ng-blur="cardUpdate(cardservice.getCurrent())"
|
ng-blur="cardUpdate(cardservice.getCurrent())"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче