Skip to content

Commit 6a20ac3

Browse files
committed
tweak display inc. mobile
1 parent 336ce78 commit 6a20ac3

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tutorcruncher-socket",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "TutorCruncher socket",
55
"author": "Samuel Colvin <[email protected]>",
66
"private": false,
@@ -20,6 +20,10 @@
2020
"testlive": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js",
2121
"lint": "eslint --ext .js,.vue src test/unit/specs"
2222
},
23+
"engines": {
24+
"node": ">= 6.0.0",
25+
"npm": ">= 3.0.0"
26+
},
2327
"dependencies": {
2428
"autoprefixer": "^6.7.6",
2529
"babel-core": "^6.23.1",
@@ -83,9 +87,5 @@
8387
"webpack-dev-middleware": "^1.10.1",
8488
"webpack-hot-middleware": "^2.17.1",
8589
"webpack-merge": "^0.14.1"
86-
},
87-
"engines": {
88-
"node": ">= 6.0.0",
89-
"npm": ">= 3.0.0"
9090
}
9191
}

src/app.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
</template>
2929

3030
<script>
31-
export default {
32-
name: 'tcs-app'
33-
}
31+
export default {}
3432
</script>
3533

3634
<style lang="scss" scoped>

src/components/con-modal.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,8 @@ export default {
103103
}
104104
105105
.tcs-content {
106-
flex-grow: 1;
107106
padding-right: 10px;
108107
color: #444;
109-
width: calc(100% - $extra-width);
110108
margin-right: 5px;
111109
@media(min-width: $size-sm) {
112110
.tcs-scroll {
@@ -120,6 +118,7 @@ export default {
120118
width: $extra-width;
121119
margin: 0 auto 20px;
122120
text-align: center;
121+
flex-shrink: 0;
123122
124123
img {
125124
height: $extra-width;

src/components/enquiry.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
</p>
88
<form class="tcs" @submit.prevent="submit">
99
<div v-for="field in visible_fields">
10-
<input_ :field="field"></input_>
10+
<tcs-input :field="field"></tcs-input>
1111
</div>
1212
<div v-for="field in attribute_fields">
13-
<input_ :field="field" prefix="attributes"></input_>
13+
<tcs-input :field="field" prefix="attributes"></tcs-input>
1414
</div>
1515
<div class="tcs-field tcs-submit">
1616
<button type="submit">
@@ -28,7 +28,7 @@ import input from './input.vue'
2828
export default {
2929
props: ['contractor'],
3030
components: {
31-
'input_': input
31+
'tcs-input': input
3232
},
3333
computed: {
3434
visible_fields: function () {

src/components/modal.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,17 @@ export default {
7070
7171
.tcs-modal {
7272
max-width: 900px;
73+
box-sizing: border-box;
7374
margin: 6vh auto 0;
7475
padding: 20px 20px 10px;
7576
background-color: #fff;
7677
border-radius: 4px;
7778
box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
7879
transition: all .3s ease;
80+
@media(max-width: 908px) {
81+
margin: 10px 4px 0;
82+
padding: 10px;
83+
}
7984
}
8085
8186
svg.tcs-svg {

0 commit comments

Comments
 (0)