Skip to content

Commit

Permalink
refactor: minor style adjustments
Browse files Browse the repository at this point in the history
remove unused css module class
add missing button type
  • Loading branch information
simonwep committed Dec 28, 2023
1 parent 5c2433c commit 6129239
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/app/components/base/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const props = withDefaults(
text?: string;
tooltip?: string;
type?: 'button' | 'reset' | 'submit';
size?: 'm' | 'l';
size?: 's' | 'm' | 'l';
tooltipPosition?: Placement;
color?: Color;
textual?: boolean;
Expand Down Expand Up @@ -75,7 +75,7 @@ const classes = computed(() => [
color: v-bind('theme.text.base');
border-radius: var(--border-radius-m);
transition: all var(--transition-s);
padding: 10px 10px;
padding: 10px;
&.iconOnly {
padding: 3px;
Expand All @@ -97,6 +97,14 @@ const classes = computed(() => [
line-height: 1em;
}
&.s {
padding: 6px 8px;
.text {
font-size: var(--font-size-xs);
}
}
&.l {
.icon {
width: 20px;
Expand Down
1 change: 1 addition & 0 deletions src/app/components/base/toggle-button/ToggleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<button
v-for="btn of buttons"
:key="btn.id"
type="button"
:class="[$style.btn, { [$style.active]: btn.id === modelValue }]"
@click="modelValue = btn.id"
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/shared/BudgetGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<!-- Footer -->
<span />
<Button icon="plus" :class="$style.addBudgetBtn" textual color="success" @click="addBudget(group.id)" />
<Button icon="plus" textual color="success" @click="addBudget(group.id)" />
<span style="grid-column: 3 / 16" />
<Currency :class="[$style.meta, $style.bold]" :value="totalAmount" />
<Currency :class="[$style.meta, $style.bold]" :value="averageAmount" />
Expand Down
8 changes: 7 additions & 1 deletion src/app/pages/shared/BudgetGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@

<!-- Footer -->
<span />
<Button :class="$style.addGroupBtn" icon="plus" :text="t('shared.addGroup')" @click="addBudgetGroup(type)" />
<Button
:class="$style.addGroupBtn"
size="s"
icon="plus"
:text="t('shared.addGroup')"
@click="addBudgetGroup(type)"
/>
</div>
</template>

Expand Down

0 comments on commit 6129239

Please sign in to comment.