Skip to content

Commit

Permalink
fix: list view column width
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Dec 9, 2024
1 parent 9675dcb commit bf8a679
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
5 changes: 2 additions & 3 deletions desk/src/pages/desk/contact/Contacts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
<script setup lang="ts">
import { computed, ref, h } from "vue";
import { usePageMeta, Avatar } from "frappe-ui";
import ListViewBuilder from "@/components/ListViewBuilder.vue";
import { ListViewBuilder, LayoutHeader } from "@/components";
import NewContactDialog from "@/components/desk/global/NewContactDialog.vue";
import LayoutHeader from "@/components/LayoutHeader.vue";
import ContactDialog from "./ContactDialog.vue";
import { createToast } from "@/utils";
import { PhoneIcon } from "@/components/icons";
Expand All @@ -55,7 +54,7 @@ const options = computed(() => {
return {
doctype: "Contact",
columnConfig: {
name: {
full_name: {
prefix: ({ row }) => {
return h(Avatar, {
shape: "circle",
Expand Down
6 changes: 3 additions & 3 deletions helpdesk/helpdesk/doctype/hd_agent/hd_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ def default_list_data():
{
"label": "Agent Name",
"key": "agent_name",
"width": "30rem",
"width": "17rem",
"type": "Data",
},
{
"label": "Email",
"key": "email",
"width": "30rem",
"width": "24rem",
"type": "Data",
},
{
"label": "Created On",
"key": "creation",
"width": "20rem",
"width": "8rem",
"type": "Datetime",
},
]
Expand Down
6 changes: 3 additions & 3 deletions helpdesk/helpdesk/doctype/hd_customer/hd_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ def default_list_data():
{
"label": "Name",
"key": "name",
"width": "30rem",
"width": "17rem",
"type": "Data",
},
{
"label": "Domain",
"key": "domain",
"width": "30rem",
"width": "24rem",
"type": "Data",
},
{
"label": "Created On",
"key": "creation",
"width": "20rem",
"width": "8rem",
"type": "Datetime",
},
]
Expand Down
6 changes: 3 additions & 3 deletions helpdesk/helpdesk/doctype/hd_team/hd_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,19 @@ def default_list_data():
{
"label": "Name",
"key": "name",
"width": "30rem",
"width": "17rem",
"type": "Data",
},
{
"label": "Assignment rule",
"key": "assignment_rule",
"width": "30rem",
"width": "24rem",
"type": "Data",
},
{
"label": "Created On",
"key": "creation",
"width": "20rem",
"width": "8rem",
"type": "Datetime",
},
]
Expand Down
18 changes: 9 additions & 9 deletions helpdesk/overrides/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ def default_list_data():
"label": "Email",
"type": "Data",
"key": "email_id",
"width": "12rem",
"width": "24rem",
},
# {
# "label": "Phone",
# "type": "Data",
# "key": "mobile_no",
# "width": "12rem",
# },
{
"label": "Phone",
"type": "Data",
"key": "phone",
"width": "12rem",
},
{
"label": "Last Modified",
"label": "Created On",
"type": "Datetime",
"key": "modified",
"key": "creation",
"width": "8rem",
},
]
Expand Down

0 comments on commit bf8a679

Please sign in to comment.