diff --git a/app/src/db/migrations/20241209000000_16-permit-complete-status.ts b/app/src/db/migrations/20241209000000_016-permit-complete-status.ts similarity index 100% rename from app/src/db/migrations/20241209000000_16-permit-complete-status.ts rename to app/src/db/migrations/20241209000000_016-permit-complete-status.ts diff --git a/frontend/src/components/common/StatusPill.vue b/frontend/src/components/common/StatusPill.vue index 991f11ce..a4c25a30 100644 --- a/frontend/src/components/common/StatusPill.vue +++ b/frontend/src/components/common/StatusPill.vue @@ -4,11 +4,29 @@ import { computed } from 'vue'; import { PermitAuthorizationStatus, PermitAuthorizationStatusDescriptions } from '@/utils/enums/housing'; // Props -const { authStatus, toolTipDirection = 'right' } = defineProps<{ +const { + authStatus, + toolTipDirection = 'right', + enlarge = false +} = defineProps<{ authStatus?: string; toolTipDirection?: string; + enlarge?: boolean; }>(); +const defaultDimensions = { + fontSize: '0.75rem', + height: '1.5rem', + iconFontSize: '1rem', + lineHeight: '1.5rem' +}; +const enlargedDimensions = { + fontSize: '1rem', + height: '2rem', + iconFontSize: '1.5rem', + lineHeight: '2rem' +}; + const pillState = { [PermitAuthorizationStatus.ABANDONED]: { badgeClass: 'grey', @@ -60,6 +78,7 @@ const pillState = { } }; +const dimensions = computed(() => (enlarge ? enlargedDimensions : defaultDimensions)); const getState = computed(() => { return pillState[authStatus as keyof typeof pillState]; }); @@ -71,6 +90,12 @@ const getState = computed(() => { v-tooltip="{ value: getState?.toolTip, modifier: toolTipDirection }" class="flex justify-content-center align-items-center auth-indicator" :class="[getState?.badgeClass]" + :style="{ + '--font-size': dimensions.fontSize, + '--icon-font-size': dimensions.iconFontSize, + '--height': dimensions.height, + '--line-height': dimensions.lineHeight + }" > {