Skip to content

Commit

Permalink
style adjustments for presidential version
Browse files Browse the repository at this point in the history
  • Loading branch information
hidegmisi committed Dec 6, 2024
1 parent 8a86914 commit 93d0573
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const classes = computed(() => ({
align-items: center;
justify-content: center;
border-radius: 50%;
overflow: visible;
overflow: hidden;
&--extra-small {
width: var(--sizing-medium);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const initials = computed(() => {
}
.image {
object-fit: contain;
object-fit: cover;
width: 100%;
height: 100%;
}
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/routes/preferred-candidate/CandidateCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const hovered = ref(false);
>
<div class="avatar desktop">
<AvatarComponent
size="medium"
size="extra-large"
background-color="rgb(var(--palette-primary-90))"
:background-image="
candidate?.img_url ||
Expand All @@ -71,7 +71,7 @@ const hovered = ref(false);
</div>
<div class="avatar mobile">
<AvatarComponent
size="medium"
size="large"
:background-color="
order === 1
? 'rgb(var(--palette-primary-50))'
Expand All @@ -87,19 +87,19 @@ const hovered = ref(false);
</AvatarComponent>
</div>
<div class="text">
<BodyText class="desktop" tag="p" size="medium">
<BodyText class="desktop" tag="p" size="large">
<strong>{{ candidate?.name }}</strong>
</BodyText>
<BodyText class="mobile" tag="p" size="medium">
<strong>{{ candidate?.short_name }}</strong>
<strong>{{ candidate?.name }}</strong>
</BodyText>
</div>
<ButtonComponent
v-show="true"
class="vote-button"
kind="outlined"
color="neutral"
size="small"
size="medium"
selected
@click="handleVote(candidate?.id ?? null)"
@mouseover="hovered = true"
Expand Down Expand Up @@ -157,7 +157,7 @@ const hovered = ref(false);
}
@media (max-width: 700px) {
grid-template-columns: 3rem 1fr auto;
grid-template-columns: 4rem 1fr auto;
column-gap: var(--responsive-spacing-extra-small);
}
Expand Down

0 comments on commit 93d0573

Please sign in to comment.