diff --git a/src/components/todoStuff/todoCard.js b/src/components/todoStuff/todoCard.js index 7dd8313..8c36d1d 100644 --- a/src/components/todoStuff/todoCard.js +++ b/src/components/todoStuff/todoCard.js @@ -27,7 +27,7 @@ export default function TodoCard(props) { backgroundColor: categories[category].color, color: 'white', borderRadius: '2px', - padding: '0px 2px', + padding: '2px 4px', }} > {categories[category].name} diff --git a/src/components/todoStuff/todoSidebar.js b/src/components/todoStuff/todoSidebar.js index f3d3976..185087b 100644 --- a/src/components/todoStuff/todoSidebar.js +++ b/src/components/todoStuff/todoSidebar.js @@ -25,9 +25,9 @@ export default function Todos({ // TODO: hide vote button if not voteable return (
-
+
#{id} - {name} +
{name}
@@ -74,7 +74,10 @@ export default function Todos({ {description && ( <>
Leírás
-
+

)} diff --git a/src/components/todoStuff/todoSidebar.module.css b/src/components/todoStuff/todoSidebar.module.css index b89d034..7846e70 100644 --- a/src/components/todoStuff/todoSidebar.module.css +++ b/src/components/todoStuff/todoSidebar.module.css @@ -13,10 +13,13 @@ font-size: 18px; } -.name { +.title { color: var(--text-color); font-size: 20px; - margin: 20px 0px; + margin: 5px 0px; +} + +.name { } .category { @@ -30,6 +33,13 @@ color: #999; } +.description { + overflow-x: hidden; + overflow-y: scroll; + max-height: calc(38vh); + margin: 5px; +} + .row { display: flex; justify-content: space-between; diff --git a/src/components/todoStuff/todos.js b/src/components/todoStuff/todos.js index 22069f7..4bc555a 100644 --- a/src/components/todoStuff/todos.js +++ b/src/components/todoStuff/todos.js @@ -4,8 +4,7 @@ import LoadingIndicator from '../LoadingIndicator.js' import TodoBoard from './todoBoard.js' import TodoTable from './todoTable.js' import TodoSidebar from './todoSidebar.js' - -import Sidebar from '../sidebar.js' +import Modal from '../modal.js' import styles from './todo.module.css' // import styles from './todos.module.css' @@ -140,8 +139,8 @@ export default function Todos() { return (
{sidebarCard && ( - { + { setSidebarCard(null) }} > @@ -165,15 +164,10 @@ export default function Todos() { }) }} /> - + )} {renderGrouper()} -
+