mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
chore: improve css styling for mobile
This commit is contained in:
parent
e33f9d79c0
commit
44a7354ffe
7 changed files with 11 additions and 4 deletions
|
@ -16,6 +16,7 @@ export interface DataTableCol<T> {
|
|||
cell?: DataTableResolver<T, ReactNode>
|
||||
sortable?: boolean
|
||||
sortKey?: string
|
||||
minWidth?: number | string
|
||||
}
|
||||
|
||||
export interface ColSort {
|
||||
|
@ -131,7 +132,7 @@ export function DataTable<T>({
|
|||
}
|
||||
}
|
||||
return (
|
||||
<div className="table-cell" key={col.key}>
|
||||
<div className="table-cell" key={col.key} style={col.minWidth ? { minWidth: col.minWidth } : {}}>
|
||||
{value ?? <>–</>}
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
@media only screen and (max-width: 600px) {
|
||||
.heading {
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
|
@ -10,7 +10,8 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid var(--color-grey);
|
||||
gap: 20px;
|
||||
gap: 5px 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ui-info-table .info-label {
|
||||
|
@ -18,8 +19,8 @@
|
|||
}
|
||||
|
||||
.ui-info-table .info-value {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.ui-info-table .info-value .ui-tag {
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
flex-direction: row;
|
||||
gap: var(--spacing);
|
||||
margin-bottom: var(--spacing);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ui-stack.ui-stack-vertical {
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
|
|
@ -128,6 +128,7 @@ export default function Campaigns() {
|
|||
key: 'name',
|
||||
title: t('name'),
|
||||
sortable: true,
|
||||
minWidth: '225px',
|
||||
cell: ({ item: { id, name, channel } }) => (
|
||||
<div className="multi-cell">
|
||||
{ channel === 'email'
|
||||
|
|
|
@ -53,6 +53,7 @@ export default function Journeys() {
|
|||
{
|
||||
key: 'name',
|
||||
title: t('name'),
|
||||
minWidth: '150px',
|
||||
},
|
||||
{
|
||||
key: 'status',
|
||||
|
|
|
@ -67,6 +67,7 @@ export default function ListTable({ search, selectedRow, onSelectRow, title }: L
|
|||
key: 'name',
|
||||
title: t('name'),
|
||||
sortable: true,
|
||||
minWidth: '200px',
|
||||
},
|
||||
{
|
||||
key: 'type',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue