Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit dfd4220

Browse files
committed
chore: fix styling
1 parent 82cce16 commit dfd4220

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/gitart-vue-dialog/composable/lazyActivation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const useLazyActivation = (baseState: Ref<boolean>) => {
1010
watch(
1111
() => baseState.value,
1212
value => {
13-
if(!value){
13+
if(!value) {
1414
deactivating.value = true
1515
nextTick(() => {
1616
active.value = value

src/gitart-vue-dialog/composable/widthStyle.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@ export interface WidthProps {
99
}
1010

1111
export const useWidthStyle = (props: WidthProps) => {
12-
const widthStyles = computed(() => {
13-
return {
14-
maxWidth:
12+
const widthStyles = computed(() => ({
13+
maxWidth:
1514
props.maxWidth === 'none'
1615
? undefined
1716
: convertToUnit(props.maxWidth),
1817

19-
width:
18+
width:
2019
props.width === 'auto'
2120
? undefined
2221
: convertToUnit(props.width),
23-
}
24-
})
22+
}))
2523

2624
return {
2725
widthStyles,

0 commit comments

Comments
 (0)