Skip to content

Commit

Permalink
Move padding from reader CSS style to Compose web view
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Aug 6, 2024
1 parent 5610344 commit 40e71cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions shared/src/commonMain/composeResources/files/reader/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ function updateStyles(colors) {
const styles = `
body {
padding-top: 16px;
padding-left: 16px;
padding-right: 16px;
color: ${colors.textColor};
font-family: 'Golos Text', sans-serif;
overflow-wrap: break-word;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ internal fun ReaderScreen(
}
}

Box(Modifier.fillMaxSize().padding(paddingValues)) {
Box(Modifier.fillMaxSize().padding(paddingValues).padding(horizontal = 16.dp)) {
WebView(
modifier = Modifier.fillMaxSize(),
state = webViewState,
Expand Down

0 comments on commit 40e71cf

Please sign in to comment.