Skip to content

Commit

Permalink
Fixed buttons aligment
Browse files Browse the repository at this point in the history
  • Loading branch information
abarmina committed Apr 1, 2020
1 parent 5afe328 commit 79f90de
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pdrc-calulator-web
# pdrc-calculator-web

## Project setup
```
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pdrc-calulator-web",
"name": "pdrc-calculator-web",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
39 changes: 18 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"
/>
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>pdrc-calulator-web</title>
</head>

<body>
<noscript>
<strong
>We're sorry but pdrc-calulator-web doesn't work properly without
JavaScript enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>pdrc-calculator-web</title>
</head>

<body>
<noscript>
<strong>We're sorry but pdrc-calculator-web doesn't work properly without
JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

</html>
32 changes: 29 additions & 3 deletions src/containers/OrderUpdate.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div>
<div class="flex">
<h1>{{ $t('orderUpdateFormTitle') }}</h1>
<div v-if="order">
<div class="flex order__header">
<h1 class="order__title">{{ $t('orderUpdateFormTitle') }}</h1>
<div v-if="order" class="flex order__actions">
<el-button icon="el-icon-printer" circle @click.stop="onPrint"></el-button>
<el-button icon="el-icon-delete" circle @click.stop="deleteDialogVisible = true"></el-button>
</div>
Expand All @@ -27,6 +27,32 @@
</div>
</template>

<style scoped>
.order__header {
flex-direction: column;
}
.order__title {
align-self: flex-start;
}
.order__actions {
align-self: flex-end;
margin-bottom: 20px;
}
@media screen and (min-width: 568px) {
.order__header {
flex-direction: row;
}
.order__actions {
align-self: auto;
margin-bottom: 0px;
}
}
</style>

<script>
import { mapActions, mapState } from "vuex";
import { getOrder, updateOrder, deleteOrder } from "../services/api";
Expand Down
2 changes: 1 addition & 1 deletion src/services/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import store from '@/store'
import tokenService from '@/services/token'

const options = {
baseURL: process.env.VUE_APP_API_HOST,
baseURL: "https://pdrc-calculator-strapi.herokuapp.com",
timeout: 15000,
headers: {
'Accept': 'application/json, text/plain, */*',
Expand Down

0 comments on commit 79f90de

Please sign in to comment.