mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-28 10:13:52 +00:00
feat(takeABreak): improve snack styling
This commit is contained in:
parent
cf6113aa81
commit
75149b93a7
3 changed files with 12 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<div class="wrapper">
|
||||
<mat-icon>free_breakfast</mat-icon>
|
||||
|
||||
<span [innerHtml]="data.message"
|
||||
class="message"></span>
|
||||
<div [innerHtml]="data.message"
|
||||
class="message"></div>
|
||||
|
||||
<div class="button-wrapper">
|
||||
<button (click)="snooze()"
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ export class TakeABreakService {
|
|||
this._tick$,
|
||||
this._triggerReset$,
|
||||
).pipe(
|
||||
// startWith(9999999),
|
||||
// delay(1000),
|
||||
scan((acc, value) => {
|
||||
return (value > 0)
|
||||
? acc + value
|
||||
|
|
@ -139,7 +141,7 @@ export class TakeABreakService {
|
|||
type: 'TAKE_A_BREAK',
|
||||
message: msg,
|
||||
config: {
|
||||
duration: RE_OPEN_SNACK_INTERVAL,
|
||||
duration: RE_OPEN_SNACK_INTERVAL - 1000,
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,4 +11,11 @@ body .mat-snack-bar-container {
|
|||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
@include mq(sm) {
|
||||
max-width: 60vw;
|
||||
}
|
||||
@include mq(lg) {
|
||||
max-width: 33vw;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue