Skip to content

Commit

Permalink
Improve email explorer on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Sep 9, 2023
1 parent 682ed77 commit 14cbbe5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/dashboard/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $variable-prefix: 'ct-';
@import './dark-mode';
@import './custom-variables';
@import '../node_modules/bootstrap/scss/bootstrap';
@import '../node_modules/bootstrap-icons/font/bootstrap-icons.css';
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css');

//Components
@import './custom/components/accordions';
Expand Down
21 changes: 13 additions & 8 deletions packages/dashboard/src/components/email/EmailList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</div>

<div class="table-files">
<table class="table table-centered mb-0 d-block w-100">
<tbody class="d-flex flex-column">
<template v-if="$store.state.files.length > 0">
<template v-if="$store.state.files.length > 0">
<table class="table table-centered mb-0 d-block w-100">
<tbody class="d-flex flex-column">
<tr class="pointer email-row" v-for="file in $store.state.files" :key="file.key"
:class="{'unread': file.customMetadata.read !== 'true', 'read': file.customMetadata.read === 'true'}"
@click="$router.push({name: 'email-file', params: {bucket: this.$route.params.bucket, folder: 'inbox',
Expand All @@ -29,9 +29,13 @@
{{ getEmailDate(file.uploaded) }}
</td>
</tr>
</template>
</tbody>
</table>
</template>

<template v-else>
<template v-else>
<table class="table table-centered mb-0">
<tbody class="">
<tr>
<td colspan="100%">
<div class="text-center">
Expand All @@ -41,9 +45,9 @@
</div>
</td>
</tr>
</template>
</tbody>
</table>
</tbody>
</table>
</template>
</div>

<!-- <div class="row mt-3">-->
Expand Down Expand Up @@ -95,6 +99,7 @@ export default {
background-color: #f3f7f9;
z-index: 0
}
.unread {
font-weight: 600;
color: black;
Expand Down
5 changes: 5 additions & 0 deletions worker/dev/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ preview_bucket_name = 'teste'
binding = 'r2-explorer-example-2'
bucket_name = 'r2-explorer-example-2'
preview_bucket_name = 'r2-explorer-example-2'

[[r2_buckets]]
binding = 'drive'
bucket_name = 'drive'
preview_bucket_name = 'drive'

0 comments on commit 14cbbe5

Please sign in to comment.