Horizontal scrollbar layout

pull/1/head
yflory 5 years ago
parent ea154e9ecc
commit b31d024851

@ -98,6 +98,7 @@
flex: 1;
display: flex;
flex-flow: column;
overflow-x: hidden;
}
#cp-app-kanban-editor {
flex: 1;
@ -108,30 +109,33 @@
}
#cp-app-kanban-content {
flex: 1;
overflow-y: auto;
display: flex;
flex-flow: column;
max-height: 100%;
overflow-x: auto;
.kanban-container-outer {
flex: 1;
display: flex;
align-items: center;
min-height: -webkit-min-content;
min-height: min-content;
min-height: 0;
.kanban-container {
flex: 1;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
max-height: 100%;
}
}
#kanban-trash {
width: 100px;
height: 100px;
align-self: end;
font-size: 40px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 100%;
i {
position: fixed;
}
&.kanban-trash-active {
color: red;
border: 1px solid red;
@ -147,6 +151,9 @@
align-items: center;
justify-content: space-between;
padding: 10px 5px 10px 10px;
&.new-item {
padding: 10px;
}
.kanban-item-text {
cursor: text;
overflow-wrap: anywhere;
@ -157,6 +164,13 @@
.kanban-board {
background-color: #eaeaea;
color: @cryptpad_text_col;
main {
min-height: 0;
padding: 0 10px;
margin: 10px 0;
flex: 1;
overflow-y: auto;
}
header {
display: flex;
align-items: center;
@ -177,7 +191,8 @@
}
}
footer {
padding: 10px;
margin: 10px;
margin-top: 0px;
span {
.tools_unselectable();
outline: none;

@ -607,6 +607,9 @@ define([
var $input = getInput().val(name).appendTo($item);
kanban.addForm(boardId, $item[0]);
$input.focus();
setTimeout(function () {
$input[0].scrollIntoView();
});
var save = function () {
$item.remove();
kanban.inEditMode = false;
@ -624,7 +627,7 @@ define([
e.stopPropagation();
save();
if (!$input.val()) { return; }
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
$(el).closest('.kanban-board').find('footer .kanban-title-button').click();
return;
}
if (e.which === 27) {

@ -4,7 +4,6 @@
.kanban-board {
position: relative;
float: left;
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
margin: 10px;
vertical-align: top;
@ -45,17 +44,11 @@
padding: .25rem .5rem;
}
.kanban-board .kanban-drag {
min-height: 200px;
padding: 20px;
flex: 1;
}
.kanban-item {
background: #fff;
padding: 15px;
margin-bottom: 20px;
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.kanban-item:hover {

Loading…
Cancel
Save