Browse Source

Make apps table in portal mobile friendly

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
b3fa4e61e3
  1. 12
      packages/builder/src/components/start/AppRow.svelte
  2. 6
      packages/builder/src/pages/builder/portal/apps/index.svelte

12
packages/builder/src/components/start/AppRow.svelte

@ -28,7 +28,7 @@
</Heading>
</div>
</div>
<div>
<div class="desktop">
{#if app.updatedAt}
{processStringSync("Updated {{ duration time 'millisecond' }} ago", {
time: new Date().getTime() - new Date(app.updatedAt).getTime(),
@ -37,7 +37,7 @@
Never updated
{/if}
</div>
<div>
<div class="desktop">
<StatusLight
positive={!app.lockedYou && !app.lockedOther}
notice={app.lockedYou}
@ -52,7 +52,7 @@
{/if}
</StatusLight>
</div>
<div>
<div class="desktop">
<StatusLight active={app.deployed} neutral={!app.deployed}>
{#if app.deployed}Published{:else}Unpublished{/if}
</StatusLight>
@ -109,4 +109,10 @@
cursor: pointer;
transition: color 130ms ease;
}
@media (max-width: 640px) {
.desktop {
display: none !important;
}
}
</style>

6
packages/builder/src/pages/builder/portal/apps/index.svelte

@ -347,4 +347,10 @@
justify-content: center;
align-items: center;
}
@media (max-width: 640px) {
.appTable {
grid-template-columns: 1fr auto;
}
}
</style>

Loading…
Cancel
Save