Skip to content

Commit

Permalink
Merge pull request #17 from Brendan-Lawton/master
Browse files Browse the repository at this point in the history
css id fix
  • Loading branch information
Brendan-Lawton authored Jun 20, 2024
2 parents 5705550 + e211136 commit 50a60d8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions sounding-board/src/views/SoundingBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

.submit-vote-div
.button.submit-button(@click="saveConditions") ✅ Stimme abgeben
.voted-text(v-if="showVotedText") <span style="color:#77b255">Sie haben abgestimmt.</span> Wenn Sie nochmal abstimmen möchten, wird Ihre ersten Stimme ersetzt.
.voted-text(v-if="showVotedText") <span style="color:#77b255">Sie haben abgestimmt.</span> Wenn Sie nochmal abstimmen möchten, wird Ihre erste Stimme ersetzt.
.buttons
.button.reveal-button(@click="showResults") Ergebnisse anzeigen
.button.hide-button(@click="hideResults") Ergebnisse ausblenden
Expand Down Expand Up @@ -708,10 +708,18 @@ export default class VueComponent extends Vue {
)
results[0].style.display = 'none'
this.setPreset('base')
if (window.innerWidth < 621) {
window.scrollTo({
top: 1800,
behavior: 'smooth',
})
} else{
window.scrollTo({
top: 600,
behavior: 'smooth',
})
}
}
private updateVoteConditions(factor: string, option: any) {
Expand Down Expand Up @@ -1454,8 +1462,8 @@ button.is-huge.factor-option.preset-buttons:hover {
}
@media only screen and (max-width: 1430px) {
.metric[data-v-4aa344e9] {
flex: 30%;
.metric {
flex: 30%!important;
}
#car-viz-total {
Expand All @@ -1481,8 +1489,8 @@ button.is-huge.factor-option.preset-buttons:hover {
}
@media only screen and (max-width: 620px) {
.metric[data-v-4aa344e9] {
flex: 50%;
.metric {
flex: 74%!important;
}
#car-viz-total {
Expand Down

0 comments on commit 50a60d8

Please sign in to comment.