Skip to content

Commit 7fa1bf0

Browse files
committed
Move padding to CSS from compose in viewer
1 parent 2ea9996 commit 7fa1bf0

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app/src/main/java/com/capyreader/app/ui/articles/detail/ArticleReader.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ package com.capyreader.app.ui.articles.detail
22

33
import androidx.compose.foundation.ScrollState
44
import androidx.compose.foundation.layout.Column
5-
import androidx.compose.foundation.layout.Spacer
65
import androidx.compose.foundation.layout.fillMaxSize
76
import androidx.compose.foundation.layout.fillMaxWidth
8-
import androidx.compose.foundation.layout.height
97
import androidx.compose.foundation.layout.wrapContentHeight
108
import androidx.compose.foundation.verticalScroll
119
import androidx.compose.runtime.Composable
@@ -20,7 +18,6 @@ import androidx.compose.runtime.saveable.rememberSaveable
2018
import androidx.compose.runtime.setValue
2119
import androidx.compose.ui.Modifier
2220
import androidx.compose.ui.layout.onGloballyPositioned
23-
import androidx.compose.ui.unit.dp
2421
import com.capyreader.app.common.Media
2522
import com.capyreader.app.common.rememberTalkbackPreference
2623
import com.capyreader.app.preferences.AppPreferences
@@ -117,7 +114,6 @@ fun ScrollableWebView(webViewState: WebViewState) {
117114
.wrapContentHeight(),
118115
state = webViewState,
119116
)
120-
Spacer(modifier = Modifier.height(120.dp))
121117
}
122118
}
123119
}

article_forge/style/stylesheet.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ ul:has(img) {
242242

243243
#article-body-content {
244244
line-height: var(--article-line-height);
245-
margin-bottom: 20vh;
245+
padding-bottom: 6rem;
246246
max-width: 40rem;
247247

248248
img {

capy/src/main/assets/stylesheet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)