update styling:

This commit is contained in:
Casey Wittrock 2025-11-07 15:04:22 -06:00
parent 5b3a6655cd
commit b5adab5786
3 changed files with 14 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<div <div
v-if="hasFilters" v-if="hasFilters"
:key="`filter-controls-${tableName}`" :key="`filter-controls-${tableName}`"
class="filter-controls-panel mb-3 p-3 bg-light rounded" class="filter-controls-panel mb-3 p-3 bg-light rounded custom-data-table"
> >
<div class="row g-3 align-items-end"> <div class="row g-3 align-items-end">
<div v-for="col in filterableColumns" :key="col.fieldName" class="col-md-4 col-lg-3"> <div v-for="col in filterableColumns" :key="col.fieldName" class="col-md-4 col-lg-3">
@ -716,4 +716,8 @@ defineExpose({
getPaginationInfo: () => paginationStore.getPageInfo(props.tableName), getPaginationInfo: () => paginationStore.getPageInfo(props.tableName),
}); });
</script> </script>
<style lang=""></style> <style lang="css">
/* .custom-data-table {
height: 100%;
} */
</style>

View File

@ -110,17 +110,15 @@ const formFields = computed(() => [
{ {
name: "customerName", name: "customerName",
label: "Client Name", label: "Client Name",
type: "autocomplete", // Changed from 'select' to 'autocomplete' type: "autocomplete",
required: true, required: true,
placeholder: "Type or select client name", placeholder: "Type or select client name",
cols: 12, cols: 12,
md: 6, md: 6,
options: customerNames.value, // Direct array of strings options: customerNames.value,
forceSelection: false, // Allow custom entries not in the list forceSelection: false, // Allow custom entries not in the list
dropdown: true, dropdown: true,
// For string arrays, don't set optionLabel at all
helpText: "Select an existing client or enter a new client name", helpText: "Select an existing client or enter a new client name",
// Let the Form component handle filtering automatically
}, },
{ {
name: "addressLine1", name: "addressLine1",

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="page-container">
<H2>Client Contact List</H2> <H2>Client Contact List</H2>
<div id="filter-container" class="filter-container"> <div id="filter-container" class="filter-container">
<button @click="onClick" id="add-customer-button" class="interaction-button"> <button @click="onClick" id="add-customer-button" class="interaction-button">
@ -199,4 +199,8 @@ onMounted(async () => {
}); });
}); });
</script> </script>
<style lang="css"></style> <style lang="css">
.page-container {
height: 100%;
}
</style>