From 497b9a4eb45ddafcb1f11ba44638b845435fc940 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Sat, 7 Dec 2024 23:17:03 +0100 Subject: [PATCH] refactor(Price add): new Proof type form input (single button) --- src/assets/main.css | 4 ++++ src/components/ProofTypeInputRow.vue | 21 ++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/assets/main.css b/src/assets/main.css index 3d6104e9099..e138c877b89 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -6,3 +6,7 @@ content:" *"; color: #F44336; /* red */ } + +.v-btn-group--density-compact.v-btn-group { + height: 28px; /* default is 36px; match v-btn size="small" height */ +} diff --git a/src/components/ProofTypeInputRow.vue b/src/components/ProofTypeInputRow.vue index 7d3dbe7b5be..1e555e56ae9 100644 --- a/src/components/ProofTypeInputRow.vue +++ b/src/components/ProofTypeInputRow.vue @@ -1,17 +1,11 @@ @@ -30,6 +24,11 @@ export default { return { proofTypeList: constants.PROOF_TYPE_LIST, } + }, + methods: { + isSelectedType(proofType) { + return this.proofTypeForm.type === proofType + } } }