mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-23 08:48:37 +02:00
feat(topic): Topic List Route (#172)
* 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
This commit is contained in:
14
web/components/routes/topics/hooks/use-column-styles.ts
Normal file
14
web/components/routes/topics/hooks/use-column-styles.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user