mirror of
https://github.com/linsa-io/linsa.git
synced 2026-03-24 18:11:30 +01:00
* wip * wip * wip * wwip * wip * wip * fix(util): rmeove checking to existing in slug * wip * chore: handle create page * chore: handle page title untitled
17 lines
493 B
TypeScript
17 lines
493 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"
|
|
},
|
|
content: { "--width": "auto", "--min-width": "200px", "--max-width": "200px" },
|
|
topic: { "--width": "65px", "--min-width": "120px", "--max-width": "120px" },
|
|
updated: { "--width": "82px", "--min-width": "82px", "--max-width": "82px" }
|
|
}
|
|
}
|