Skip to content

Commit

Permalink
fix: show fullscreen correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Jan 27, 2021
1 parent 828d37e commit 7f5b9f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
11 changes: 7 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/* Allow users to select and copy text
https://allexperts16.blogspot.com/2018/06/allow-users-to-select-and-copy-text-in.html */

.app-background {
background: var(--background);
color: var(--color);
}

.app-fullscreen {
.ios .app-fullscreen {
min-height: calc(100% - var(--offset-top));
}

.md .app-fullscreen {
min-height: 100%;
}

.chapter-card {
height: 300px;
max-height: 300px;
Expand Down Expand Up @@ -53,6 +54,8 @@ https://allexperts16.blogspot.com/2018/06/allow-users-to-select-and-copy-text-in
text-align: center;
}

/* Allow users to select and copy text
https://allexperts16.blogspot.com/2018/06/allow-users-to-select-and-copy-text-in.html */
.selectable {
-webkit-user-select: text;
-moz-user-select: text;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Page.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ion-content ion-toolbar {
--background: transparent;
}
h1 {
margin: 0;
}
1 change: 1 addition & 0 deletions src/pages/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const HomePage: React.FC = () => {
<IonTitle>{t(`APP.NAME`)}</IonTitle>
</IonToolbar>
</IonHeader>

<IonContent color="primary" fullscreen>
<IonHeader collapse="condense">
<IonToolbar color="primary">
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ export const SettingsPage: React.FC = () => {
</IonToolbar>
</IonHeader>

<IonContent color="primary" fullscreen={true}>
<IonContent color="primary" fullscreen>
<IonHeader collapse="condense">
<IonToolbar color="primary">
<IonTitle size="large">{t('SETTINGS.TITLE')}</IonTitle>
</IonToolbar>
</IonHeader>

<div className="app-background app-fullscreen">
<IonList>
<SettingsLanguageItems />
Expand Down

0 comments on commit 7f5b9f5

Please sign in to comment.