- Fix Horizontal mode lanes wrapping
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -3,13 +3,15 @@ import styled, { createGlobalStyle, css } from "styled-components";
|
|||||||
|
|
||||||
const getBoardWrapperStyles = (props) => {
|
const getBoardWrapperStyles = (props) => {
|
||||||
if (props.orientation === "vertical") {
|
if (props.orientation === "vertical") {
|
||||||
return ` `;
|
return ``;
|
||||||
}
|
}
|
||||||
if (props.orientation === "horizontal") {
|
if (props.orientation === "horizontal") {
|
||||||
|
// TODO: The white-space: nowrap; would be a good place to offer further customization
|
||||||
return `
|
return `
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
overflow-x: auto;
|
||||||
|
white-space: nowrap;
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
@@ -35,7 +37,7 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
-webkit-user-modify: read-write-plaintext-only;
|
-webkit-user-modify: read-write-plaintext-only;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comPlainTextContentEditable--has-placeholder::before {
|
.comPlainTextContentEditable--has-placeholder::before {
|
||||||
content: attr(placeholder);
|
content: attr(placeholder);
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
@@ -78,6 +80,7 @@ export const StyleHorizontal = styled.div`
|
|||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
min-height: 25px;
|
min-height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-trello-lane.lane-collapsed {
|
.react-trello-lane.lane-collapsed {
|
||||||
min-height: 15px;
|
min-height: 15px;
|
||||||
}
|
}
|
||||||
@@ -87,9 +90,11 @@ export const StyleVertical = styled.div`
|
|||||||
.react-trello-column-header {
|
.react-trello-column-header {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-trello-card {
|
.react-trello-card {
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-trello-board {
|
.react-trello-board {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user