make table responsive

This commit is contained in:
Lucas 2023-03-13 16:13:25 +01:00
parent 3609e60f19
commit e14e1c8b83
2 changed files with 24 additions and 30 deletions

View file

@ -124,29 +124,32 @@
.flickity-button {
background: #588597;
}
/* Spells */
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
}
.list-col {
flex-grow: 2;
min-width: 600px;
width: 75%;
float: left;
}
.view-col {
flex-grow: 1;
width: 25%;
float: left;
}
@media screen and (max-width: 768px) {
.list-col,
.view-col {
width: 100%;
float: none;
}
@media screen and (min-width: 768px) {
.list-col{
margin-right: 1%;
}
.view-col {
max-width: 600px;
}
zoom:70%
};
}
.w2ui-grid-data {
@ -158,5 +161,4 @@
white-space: break-spaces;
}
.w2ui-grid .w2ui-grid-body table {
}

View file

@ -38,11 +38,10 @@ fetch(jsonsource)
searchable: { operator: "contains" },
},
{
field: "desc",
text: "Description",
size: "500%",
style: "test",
resizable: true,
field: "source",
text: "Source",
sortable: true,
tooltip: "Which book is this from ?",
searchable: { operator: "contains" },
render(record, extra) {
return (
@ -52,13 +51,6 @@ fetch(jsonsource)
);
},
},
{
field: "source",
text: "Source",
sortable: true,
tooltip: "Which book is this from ?",
searchable: { operator: "contains" },
},
{ field: "page", text: "Page", sortable: true },
{ field: "level", text: "Level", sortable: true, size: 65 },
{ field: "school", text: "School", sortable: true },