File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
@kiva/kv-components/src/vue Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,13 @@ export default {
195
195
return false ;
196
196
},
197
197
},
198
+ /**
199
+ * Whether to hide the background of the headline section on mobile (e.g., in Borrower Profile Sidesheet)
200
+ * */
201
+ hideHeadlineBgOnMobile: {
202
+ type: Boolean ,
203
+ default: false ,
204
+ },
198
205
},
199
206
emits: [' side-sheet-closed' , ' go-to-link' ],
200
207
setup (props , { emit, slots }) {
@@ -203,6 +210,7 @@ export default {
203
210
kvTrackFunction ,
204
211
trackEventCategory ,
205
212
widthDimensions ,
213
+ hideHeadlineBgOnMobile ,
206
214
} = toRefs (props);
207
215
208
216
const open = ref (false );
@@ -219,7 +227,9 @@ export default {
219
227
});
220
228
221
229
const contentHeight = computed (() => {
222
- const height = windowHeight .value - heights .headline - heights .controls ;
230
+ const height = windowHeight .value
231
+ - (hideHeadlineBgOnMobile .value ? 0 : heights .headline )
232
+ - heights .controls ;
223
233
return Math .max (height, 0 );
224
234
});
225
235
You can’t perform that action at this time.
0 commit comments