mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-28 18:20:42 +00:00
feat: adjust styling for inbox icon
This commit is contained in:
parent
27f31b764f
commit
d5f05fb97e
3 changed files with 10 additions and 6 deletions
|
|
@ -1,8 +1,10 @@
|
|||
<mat-icon
|
||||
[style.background]="color()"
|
||||
class="tag-ico"
|
||||
>{{ tag().icon }}</mat-icon
|
||||
>
|
||||
@if (!isInboxTag()) {
|
||||
<mat-icon
|
||||
[style.background]="color()"
|
||||
class="tag-ico"
|
||||
>{{ tag().icon }}
|
||||
</mat-icon>
|
||||
}
|
||||
@if (!isHideTitle()) {
|
||||
<span class="tag-title">{{ tag().title }}</span>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ $pad: ($ico-size - $line-height + $ico-pad * 2) * 0.5;
|
|||
.tag-title {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: $line-height;
|
||||
line-height: 1;
|
||||
padding: $pad 0;
|
||||
|
||||
@include darkTheme() {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import {
|
|||
Signal,
|
||||
} from '@angular/core';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { INBOX_TAG } from '../tag.const';
|
||||
|
||||
export interface TagComponentTag {
|
||||
title: string;
|
||||
|
|
@ -28,6 +29,7 @@ export interface TagComponentTag {
|
|||
export class TagComponent {
|
||||
tag = input.required<TagComponentTag>();
|
||||
isHideTitle = input(false);
|
||||
isInboxTag = computed(() => (this.tag() as any).id === INBOX_TAG.id);
|
||||
|
||||
// @HostBinding('style.background')
|
||||
color: Signal<string | undefined> = computed(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue