Skip to content

Commit aa9da60

Browse files
style changes - padding margin (#212)
* style changes - padding margin * refacto: regrouping scss * ci: minimal e2e on fork * ci: minimal e2e on fork * fix test snapshot Co-authored-by: BilelJegham <contact.bileljegham@gmail.com>
1 parent 91a013b commit aa9da60

8 files changed

Lines changed: 63 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ on:
66
pull_request:
77

88
jobs:
9+
checksecret:
10+
name: check if MY_SECRET is set in github secrets
11+
runs-on: ubuntu-latest
12+
outputs:
13+
is_MY_SECRET_set: ${{ steps.checksecret_job.outputs.is_MY_SECRET_set }}
14+
steps:
15+
- name: Check whether unity activation requests should be done
16+
id: checksecret_job
17+
env:
18+
MY_SECRET: ${{ secrets.GMAP_API_KEY }}
19+
run: |
20+
echo "is_MY_SECRET_set: ${{ env.MY_SECRET != '' }}"
21+
echo "::set-output name=is_MY_SECRET_set::${{ env.MY_SECRET != '' }}"
922
integration:
1023
env:
1124
VUE_APP_API_KEY: YOUR_GOOGLE_MAPS_API_KEY
@@ -63,8 +76,38 @@ jobs:
6376
name: ${{ matrix.os }}-node-v${{ matrix.node }}-build
6477
path: dist
6578

79+
80+
cypress-chrome-firefox-simple:
81+
needs: [checksecret, integration]
82+
if: needs.checksecret.outputs.is_MY_SECRET_set == 'false'
83+
runs-on: ubuntu-16.04
84+
name: E2E on Ubuntu
85+
strategy:
86+
fail-fast: false
87+
matrix:
88+
browsers: [chrome, firefox]
89+
steps:
90+
- uses: actions/checkout@v1
91+
- uses: cypress-io/github-action@v2
92+
with:
93+
start: npm run serve
94+
wait-on: 'http://localhost:8080'
95+
record: true
96+
parallel: true
97+
group: ${{matrix.browsers}}
98+
tag: ${{ github.event_name }}
99+
browser: ${{matrix.browsers}}
100+
spec: |
101+
tests/e2e/specs/homePage.test.js
102+
env:
103+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
104+
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
105+
106+
107+
66108
cypress-chrome-firefox:
67-
needs: integration
109+
needs: [checksecret, integration]
110+
if: needs.checksecret.outputs.is_MY_SECRET_set == 'true'
68111
env:
69112
VUE_APP_API_KEY: ${{ secrets.GMAP_API_KEY }}
70113
VUE_APP_FIREBASE_API_KEY: ${{ secrets.VUE_APP_FIREBASE_API_KEY }}

src/components/dialogroom/DialogRoom.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
persistent
55
:fullscreen="$viewport.width < 450"
66
max-width="800"
7+
content-class="dialog-room"
78
>
89
<component
910
:is="currentComponent"
@@ -54,3 +55,11 @@ export default {
5455
},
5556
};
5657
</script>
58+
<style lang="scss">
59+
.dialog-room {
60+
.v-card__actions {
61+
gap: .5rem;
62+
padding: 1rem;
63+
}
64+
}
65+
</style>

src/components/dialogroom/card/CardRoomName.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
};
5656
</script>
5757

58-
<style scoped>
58+
<style lang="scss" scoped>
5959
#card-title {
6060
font-size: 16px;
6161
font-weight: 500;

src/components/dialogroom/card/CardRoomSettings.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
</v-btn>
242242
<v-btn
243243
id="btnNextSettings"
244+
dark
244245
depressed
245246
color="#43B581"
246247
:disabled="loadingGeoJson"
@@ -365,9 +366,6 @@ export default {
365366
}
366367
}
367368
368-
.v-card__actions .v-btn {
369-
color: white;
370-
}
371369
.card_settings__allow_btns {
372370
display: flex;
373371
flex-direction: column;

src/components/home/SearchBox.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
class="btn-customs"
3030
color="primary"
3131
height="50"
32+
width="50"
3233
@click="dialogCustom = !dialogCustom"
3334
>
3435
<v-icon>mdi-map-plus</v-icon>
@@ -148,6 +149,7 @@ export default {
148149
.search-box__btns {
149150
display: flex;
150151
justify-content: space-around;
152+
width: calc(100% - 50px);
151153
&__btn {
152154
width: 40%;
153155
padding: 0 5em;

src/scss/variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ html, body {
4646
color: black;
4747
}
4848

49+
.v-btn--text {
50+
margin: 0 8px;
51+
}
52+
4953
.blur{
5054
filter: blur(4px);
5155
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`DialogRoom.vue render 1`] = `
4-
<v-dialog-stub opendelay="0" closedelay="0" contentclass="" maxwidth="800" origin="center center" persistent="true" retainfocus="true" transition="dialog-transition" width="auto">
4+
<v-dialog-stub opendelay="0" closedelay="0" contentclass="dialog-room" maxwidth="800" origin="center center" persistent="true" retainfocus="true" transition="dialog-transition" width="auto">
55
<settings-stub singleplayer="true" current-component="settings" room-name=""></settings-stub>
66
</v-dialog-stub>
77
`;

tests/unit/components/home/__snapshots__/SearchBox.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports[`SearchBox.vue test search Input 1`] = `
3030
}" nodatatext="$vuetify.noDataText" items="" itemcolor="primary" itemdisabled="disabled" itemtext="text" itemvalue="value" menuprops="[object Object]" returnobject="true" allowoverflow="true" filter="function _default(item, queryText, itemText) {
3131
return itemText.toLocaleLowerCase().indexOf(queryText.toLocaleLowerCase()) > -1;
3232
}" searchinput="" delimiters=""></v-combobox-stub>
33-
<v-btn-stub color="primary" height="50" tag="button" activeclass="" icon="true" type="button" class="btn-customs">
33+
<v-btn-stub color="primary" height="50" width="50" tag="button" activeclass="" icon="true" type="button" class="btn-customs">
3434
<v-icon-stub>mdi-map-plus</v-icon-stub>
3535
</v-btn-stub>
3636
</div>

0 commit comments

Comments
 (0)