diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-04-13 23:15:46 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-04-13 23:15:46 -0500 |
| commit | 72e980b857ffac4c362d3d4b6689d251fac6a750 (patch) | |
| tree | f347c443c1e8efe6d244af7e06e11aececa5c00b /src/components/ActionBar.vue | |
| parent | 569488c24ac0ee5c4cca9adfb0dc3f3aa9e7eca4 (diff) | |
| parent | 5433214aa9b2cd3dd3445f9f2db297d4a6f2e670 (diff) | |
Merge pull request #2 from cobraguy/styling
Add styling and dark mode
Diffstat (limited to 'src/components/ActionBar.vue')
| -rw-r--r-- | src/components/ActionBar.vue | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/src/components/ActionBar.vue b/src/components/ActionBar.vue index 96dbaae..e50c791 100644 --- a/src/components/ActionBar.vue +++ b/src/components/ActionBar.vue @@ -1,25 +1,26 @@ <template> - <div> - <file-upload + <div id="action-bar"> + <FileUpload :accept="'text/plain'" :multiple="true" - @file-changed="handlePtChange">Upload PT Schedule</file-upload> - <file-upload + @fileChanged="handlePtChange">Upload PT Schedule</FileUpload> + <FileUpload :accept="'application/json'" - @file-changed="handleLabChange">Upload Lab Schedule</file-upload> - <button @click="save">Export</button> + @fileChanged="handleLabChange">Import Lab Schedule</FileUpload> + <UIButton @click="save">Export</UIButton> </div> </template> <script> import FileUpload from '@/components/FileUpload.vue'; - import { parseLabFile, parsePtSchedule } from '@/features/parser'; +import UIButton from '@/components/UIButton.vue'; export default { name: 'ActionBar', components: { FileUpload, + UIButton, }, methods: { handleLabChange(files) { @@ -73,3 +74,19 @@ export default { }, }; </script> + +<style> +#action-bar { + max-width: 100vw; + overflow-x: auto; + white-space: nowrap; +} + +#action-bar > * { + margin-left: 0.5rem; +} + +#action-bar > *:first-child { + margin-left: 0; +} +</style> |
