From 30f5c226970064f01907b290ff2631fffd1644c9 Mon Sep 17 00:00:00 2001 From: John Leider Date: Tue, 26 Jan 2021 15:45:24 -0600 Subject: [PATCH] fix(VDivider): change thickness to modify border width --- packages/vuetify/src/components/VDivider/VDivider.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/vuetify/src/components/VDivider/VDivider.ts b/packages/vuetify/src/components/VDivider/VDivider.ts index 2ab8dbfd5119..ac50550fd983 100644 --- a/packages/vuetify/src/components/VDivider/VDivider.ts +++ b/packages/vuetify/src/components/VDivider/VDivider.ts @@ -10,7 +10,7 @@ import makeProps from '@/util/makeProps' import { useTheme } from '@/composables' // Types -type DividerKey = 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' +type DividerKey = 'borderRightWidth' | 'borderTopWidth' | 'maxHeight' | 'maxWidth' type DividerStyles = Partial> export default defineComponent({ @@ -31,15 +31,11 @@ export default defineComponent({ const styles: DividerStyles = {} if (props.length) { - const length = convertToUnit(props.length) - - styles[props.vertical ? 'maxHeight' : 'maxWidth'] = length + styles[props.vertical ? 'maxHeight' : 'maxWidth'] = convertToUnit(props.length) } if (props.thickness) { - const length = convertToUnit(props.thickness) - - styles[props.vertical ? 'minWidth' : 'minHeight'] = length + styles[props.vertical ? 'borderRightWidth' : 'borderTopWidth'] = convertToUnit(props.thickness) } return styles