Skip to content

Commit 07dfe5c

Browse files
author
Bot
committed
fix layout bug after send on contribute page
1 parent 8e340c9 commit 07dfe5c

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/views/Contribute.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<main class="middle">
44
<h1>Contribute</h1>
55

6-
<article :class="{shrink: expand || sent}">
6+
<article :class="{shrink: expand}">
77
<p>
88
Our mission is to ensure the diversity and quality of the code on which our users practice and test their skills. We do our best to ensure that there are no errors in the code but with that many languages and technologies available on CodeRush, it is not possible without your help.
99
</p>
@@ -49,6 +49,7 @@
4949
class="editor-wrapper"
5050
@expand="(value) => expand = value"
5151
/>
52+
5253
<p v-show="sent">
5354
Thank you for your contribution. Your submission will soon be listed <a href="https://github.com/encap/coderush/pulls">here</a>.
5455
</p>
@@ -166,7 +167,6 @@ export default {
166167
167168
.middle
168169
display: flex
169-
justify-content: space-between
170170
flex-basis: 0
171171
flex-direction: column
172172
flex-grow: 2
@@ -250,7 +250,7 @@ article p
250250
display: flex
251251
align-items: flex-end
252252
justify-content: space-between
253-
margin-top: 1em
253+
margin-top: auto
254254
margin-bottom: $thin-gap
255255
256256
.button
@@ -270,7 +270,7 @@ article p
270270
&:first-child
271271
margin-right: $gap
272272
273-
&:hover
273+
&:hover:not(:disabled)
274274
background-color: $purple
275275
276276
&:active

vue.config.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ const PrerenderSPAPlugin = require('prerender-spa-plugin');
33

44
// const fs = require('fs');
55
// const StatsPlugin = require('stats-webpack-plugin');
6-
6+
const plugins = [
7+
// new StatsPlugin('stats.json')
8+
];
9+
if (process.env.VUE_APP_API_URL === 'https://api.coderush.xyz') {
10+
plugins.push(new PrerenderSPAPlugin({
11+
staticDir: path.join(__dirname, 'dist'),
12+
routes: ['/', '/about', '/contribute'],
13+
}));
14+
}
715

816
module.exports = {
917
productionSourceMap: false,
@@ -26,13 +34,7 @@ module.exports = {
2634
'chart.js$': 'chart.js/dist/Chart.min.js',
2735
},
2836
},
29-
plugins: [
30-
// new StatsPlugin('stats.json'),
31-
process.env.NODE_ENV ? new PrerenderSPAPlugin({
32-
staticDir: path.join(__dirname, 'dist'),
33-
routes: ['/', '/about', '/contribute'],
34-
}) : null,
35-
],
37+
plugins,
3638
},
3739
chainWebpack(config) {
3840
config.optimization.minimizer('terser').tap((args) => {

0 commit comments

Comments
 (0)