Skip to content

Commit

Permalink
Add overflow-wrap for reader view content
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Aug 6, 2024
1 parent 9ee34fb commit 0e14fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions shared/src/commonMain/composeResources/files/reader/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ 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;
}
a {
color: ${colors.linkColor};
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).padding(horizontal = 16.dp)) {
Box(Modifier.fillMaxSize().padding(paddingValues)) {
WebView(
modifier = Modifier.fillMaxSize(),
state = webViewState,
Expand Down

0 comments on commit 0e14fa5

Please sign in to comment.