Skip to content

Commit

Permalink
fix: css
Browse files Browse the repository at this point in the history
  • Loading branch information
nyagami committed Aug 11, 2024
1 parent c6b58ac commit 0840a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions android/app/src/main/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ body.page-reader {

body.page-reader > #LNReader-chapter{
height: calc(90vh);
padding-top: calc(2vh);
column-width: calc(100vw - var(--readerSettings-padding) * 2);
column-gap: calc(var(--readerSettings-padding) * 2);
transition: 200ms;
Expand Down Expand Up @@ -91,15 +90,13 @@ td {
.info-text {
margin-left: var(--readerSettings-padding);
margin-right: var(--readerSettings-padding);
width: calc(100% - var(--readerSettings-padding) * 2);
border-radius: 50px;
border-width: 1;
color: var(--theme-onPrimary);
background-color: var(--theme-primary);
font-family: var(--readerSettings-fontFamily);
font-size: 16px;
border-width: 0;
user-select: none;
}

.next-button {
Expand All @@ -108,6 +105,7 @@ td {
overflow: hidden;
white-space: nowrap;
padding: 0 16px;
width: calc(100% - var(--readerSettings-padding) * 2);
}

.info-text {
Expand Down
2 changes: 1 addition & 1 deletion src/screens/reader/components/WebViewReader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const WebViewReader: React.FC<WebViewReaderProps> = ({
<link rel="stylesheet" href="${assetsUriPrefix}/css/index.css">
<style>
:root {
--StatusBar-currentHeight: ${StatusBar.currentHeight};
--StatusBar-currentHeight: ${StatusBar.currentHeight}px;
--readerSettings-theme: ${readerSettings.theme};
--readerSettings-padding: ${readerSettings.padding}px;
--readerSettings-textSize: ${readerSettings.textSize}px;
Expand Down

0 comments on commit 0840a8a

Please sign in to comment.