This commit is contained in:
parent
5f930a09cf
commit
73c4b87ea8
4 changed files with 21 additions and 2 deletions
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
* vNEXT
|
* vNEXT
|
||||||
|
|
||||||
|
** Large screen optimization
|
||||||
|
On large screens - the content now has a maximum height
|
||||||
|
of ~$breakpoint-md~, and the content is both vertically
|
||||||
|
and horiztonally aligned. At 2560x1080 the appearance is
|
||||||
|
similar to a book on a large blank space
|
||||||
|
|
||||||
** Revisit ~ThemeSelect.tsx~ for touch devices
|
** Revisit ~ThemeSelect.tsx~ for touch devices
|
||||||
On touch devices it is now easier to change themes thanks to
|
On touch devices it is now easier to change themes thanks to
|
||||||
a container that has a larger height and width than the theme
|
a container that has a larger height and width than the theme
|
||||||
|
|
|
@ -5,6 +5,19 @@
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
@media (min-height: $breakpoint-lg) {
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app.mount.root {
|
||||||
|
max-height: $breakpoint-md;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= erb("_postman.html.erb", {locale: context.locale, dir: context.dir}) %>
|
<%= erb("_postman.html.erb", {locale: context.locale, dir: context.dir}) %>
|
||||||
<div class="app mount root h-full"></div>
|
<div class="app mount root w-full h-full"></div>
|
||||||
<script src="/js/loaders/surah-index-loader.js?v=<%= commit %>"></script>
|
<script src="/js/loaders/surah-index-loader.js?v=<%= commit %>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= erb("_postman.html.erb", {locale: context.locale, dir: context.dir}) %>
|
<%= erb("_postman.html.erb", {locale: context.locale, dir: context.dir}) %>
|
||||||
<div class="app mount root"
|
<div class="app mount root w-full h-full"
|
||||||
data-surah-id="<%= context.surah.id %>"
|
data-surah-id="<%= context.surah.id %>"
|
||||||
data-audio-base-url="<%= audio_base_url %>"
|
data-audio-base-url="<%= audio_base_url %>"
|
||||||
data-commit-id="<%= commit %>">
|
data-commit-id="<%= commit %>">
|
||||||
|
|
Loading…
Reference in a new issue