responsivita: výšky grafů přes tailwind chart-*, viewport-fit=cover
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
import type { Config } from 'tailwindcss'
|
||||
|
||||
/** Responsivní výšky grafů: mobil chart-sm, tablet chart-md, desktop chart-lg (ekonomika chart-xl). */
|
||||
const chartHeights = {
|
||||
'chart-sm': '140px',
|
||||
'chart-md': '200px',
|
||||
'chart-lg': '260px',
|
||||
'chart-xl': '280px',
|
||||
} as const
|
||||
|
||||
export default {
|
||||
darkMode: 'class',
|
||||
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
||||
theme: {
|
||||
extend: {},
|
||||
extend: {
|
||||
height: chartHeights,
|
||||
maxHeight: chartHeights,
|
||||
minHeight: chartHeights,
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
} satisfies Config
|
||||
|
||||
Reference in New Issue
Block a user