Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat(#228): notes background
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 1, 2019
1 parent 5827d19 commit cd6d066
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions remote/src/app/components/app-notes/app-notes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ app-notes {
margin: 0;
white-space: pre-line;

color: var(--ion-text-color);

&.notes-title {
font-size: 1.8rem;
}
Expand All @@ -13,6 +15,8 @@ app-notes {
bottom-sheet {
--sheet-content-padding-top: 4px;
--sheet-z-index: 1000;
--sheet-background-color: var(--ion-background-color, white);
--sheet-indicator-color: var(--ion-text-color);
}

div.landscape-notes {
Expand Down
4 changes: 2 additions & 2 deletions remote/src/app/components/app-notes/app-notes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class AppNotes {

private renderNotes() {
return [
<p slot="sheet-header">Notes</p>,
<p slot="sheet-header" class="ion-margin-start ion-margin-end">Notes</p>,
this.renderNote()
]
}
Expand All @@ -75,6 +75,6 @@ export class AppNotes {
return undefined;
}

return <p class="ion-padding-top ion-padding-bottom ion-margin-top notes">{this.currentSlide.notes.replace(/<(?:[^>=]|='[^']*'|="[^"]*"|=[^'"][^\s>]*)*>/gmi, '')}</p>;
return <p class="ion-padding-top ion-padding-bottom ion-margin notes">{this.currentSlide.notes.replace(/<(?:[^>=]|='[^']*'|="[^"]*"|=[^'"][^\s>]*)*>/gmi, '')}</p>;
}
}

0 comments on commit cd6d066

Please sign in to comment.