mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
* feat: add item scroll to active * fix: reset enterkey and scroll to view * fix: link item displayName * refactor: remove keyboard page nav * chore: fix scrolling, perf, keys, highlight active item etc * chore: use new hook for create a page * chore: disabled auto delete page * wip * chore: add learning selector * chore: learning selector update
15 lines
331 B
TypeScript
15 lines
331 B
TypeScript
import { useMedia } from "react-use"
|
|
|
|
export const useColumnStyles = () => {
|
|
const isTablet = useMedia("(max-width: 640px)")
|
|
|
|
return {
|
|
title: {
|
|
"--width": "69px",
|
|
"--min-width": "200px",
|
|
"--max-width": isTablet ? "none" : "auto"
|
|
},
|
|
topic: { "--width": "65px", "--min-width": "120px", "--max-width": "120px" }
|
|
}
|
|
}
|