Skip to content

Commit

Permalink
fix css issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lemeur committed Dec 2, 2024
1 parent 20d6406 commit 9ba26f4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/components/annotations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}

.button_primary_blue:hover {
color: var(--color-secondary);
// color: var(--color-secondary);
background-color: var(--color-blue);
}

Expand Down
1 change: 1 addition & 0 deletions src/renderer/assets/styles/components/modals.scss.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export declare const add_dialog: string;
export declare const button_secondary_blue: string;
export declare const c_dialog__box: string;
export declare const close_button: string;
export declare const CSS_END_components_modals: string;
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/assets/styles/reader-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ button {
}

.isOnSearch {
top: 75px!important;
}

.isOnSearchScroll {
top: 50px!important;
}

Expand Down
1 change: 1 addition & 0 deletions src/renderer/assets/styles/reader-app.scss.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export declare const HIDE_CURSOR_CLASS_head: string;
export declare const inert: string;
export declare const isOnSearch: string;
export declare const isOnSearchPdf: string;
export declare const isOnSearchScroll: string;
export declare const landmarks_tabs: string;
export declare const landmarks_tabs_button: string;
export declare const left_button: string;
Expand Down
5 changes: 3 additions & 2 deletions src/renderer/reader/components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,9 @@ class Reader extends React.Component<IProps, IState> {
: this.props.readerConfig.readerDockingMode === "right" ? !this.props.readerConfig.paged ? stylesReader.docked_right_scrollable : stylesReader.docked_right_pdf
: ""
) : undefined,
(this.props.searchEnable && !this.props.isPdf) ? stylesReader.isOnSearch
: (this.props.searchEnable && this.props.isPdf) ? stylesReader.isOnSearchPdf
(this.props.searchEnable && !this.props.isPdf && this.props.readerConfig.paged) ? stylesReader.isOnSearch
: (this.props.searchEnable && this.props.isPdf) ? stylesReader.isOnSearchPdf :
(this.props.searchEnable && !this.props.readerConfig.paged) ? stylesReader.isOnSearchScroll
: "")}
ref={this.mainElRef}
style={{ inset: isAudioBook || !this.props.readerConfig.paged || this.props.isPdf || this.props.isDivina ? "0" : "75px 50px" }}>
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/reader/components/ReaderSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ const SaveResetApplyPreset = () => {

<div className={stylesSettings.preset_settings_container}>
<div>
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : ""}} onClick={() => {
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : "", height: dockedMode ? "fit-content" : "30px"}} onClick={() => {
dispatch(readerActions.configSetDefault.build(readerConfig));
}}>
<SVG ariaHidden={true} svg={SaveIcon} />
Expand All @@ -1083,15 +1083,15 @@ const SaveResetApplyPreset = () => {
</div>

<div>
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : ""}} onClick={applyPreferredConfig}>
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : "", height: dockedMode ? "fit-content" : "30px"}} onClick={applyPreferredConfig}>
<SVG ariaHidden={true} svg={DoubleCheckIcon} />
{__("reader.settings.preset.apply")}
</button>
<p>{__("reader.settings.preset.applyDetails")}</p>
</div>

<div>
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : ""}} onClick={() => {
<button className={stylesButtons.button_secondary_blue} style={{maxWidth: dockedMode ? "284px" : "", height: dockedMode ? "fit-content" : "30px"}} onClick={() => {
dispatch(readerActions.configSetDefault.build(readerConfigInitialState));
applyPreferredConfig();
}}>
Expand Down

0 comments on commit 9ba26f4

Please sign in to comment.