Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yoyurec/logseq-awesome-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.13
Choose a base ref
...
head repository: yoyurec/logseq-awesome-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.14
Choose a head ref
  • 2 commits
  • 12 files changed
  • 2 contributors

Commits on Mar 8, 2023

  1. Copy the full SHA
    d786eae View commit details
  2. chore(release): 2.0.14 [skip ci]

    ## [2.0.14](v2.0.13...v2.0.14) (2023-03-08)
    
    ### Bug Fixes
    
    * **pdf:** header, tans and search ([d786eae](d786eae))
    semantic-release-bot committed Mar 8, 2023
    Copy the full SHA
    59fce4f View commit details
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.0.14](https://github.com/yoyurec/logseq-awesome-ui/compare/v2.0.13...v2.0.14) (2023-03-08)


### Bug Fixes

* **pdf:** header, tans and search ([d786eae](https://github.com/yoyurec/logseq-awesome-ui/commit/d786eae968ac4c055ca9587aff0f066f2269e602))

## [2.0.13](https://github.com/yoyurec/logseq-awesome-ui/compare/v2.0.12...v2.0.13) (2023-03-08)


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "logseq-awesome-ui",
"description": "Reworked, simplified, fixed and pumped-up Logseq! Layout, components, etc...",
"version": "2.0.13",
"version": "2.0.14",
"author": "yoyurec <yoyurec@gmail.com>",
"main": "dist/index.html",
"scripts": {
4 changes: 0 additions & 4 deletions src/awesomeUI.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
@import url("./modules/pages/pages.css");
@import url("./modules/extPlugins/extPlugins.css");
@import url("./modules/other/other.css");

:root {
--ls-headbar-height: 44px;
--awUI-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
10 changes: 10 additions & 0 deletions src/modules/extPlugins/extPlugins.css
Original file line number Diff line number Diff line change
@@ -33,3 +33,13 @@
/*
<<<< END: Doc View Exporter plugin
*/

/* Logseq Graph Analysis */
[data-pid="logseq-graph-analysis"].visible {
z-index: var(--ls-z-index-level-3) !important;
}

/* Tags plugin */
#logseq-tags_iframe {
padding-top: calc(var(--awUI-tabs-height) - 8px);
}
1 change: 1 addition & 0 deletions src/modules/extPlugins/extPlugins.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './extPlugins.css'
10 changes: 5 additions & 5 deletions src/modules/extPlugins/tabs/tabs.css
Original file line number Diff line number Diff line change
@@ -65,19 +65,19 @@
border-bottom: 1px solid #80808080;
background-color: var(--ls-secondary-background-color);
}

.is-mac [data-pid="logseq-tabs"] {
left: 84px !important;
}

html.is-mac.is-fullscreen [data-pid="logseq-tabs"] {
left: 0 !important;
}

body.is-pdf-active [data-pid="logseq-tabs"] {
left: calc(var(--ph-view-container-width)) !important;
}


html.is-mac.is-fullscreen [data-pid="logseq-tabs"],
html.is-mac .is-pdf-active [data-pid="logseq-tabs"] {
left: 0 !important;
}
html.is-mac.is-fullscreen [data-pid="logseq-tabs"]::before,
html.is-mac .is-pdf-active [data-pid="logseq-tabs"]::before {
display: none;
12 changes: 12 additions & 0 deletions src/modules/header/header.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#head .l #search-button {
transform: translateY(1px);
}

.is-pdf-active button.navigation {
display: none;
}

body.is-pdf-active #head {
margin-left: calc(var(--ph-view-container-width)) !important;
}

body.is-pdf-active #head > .l {
min-width: unset;
}
5 changes: 0 additions & 5 deletions src/modules/header/wideSearch/wideSearch.css
Original file line number Diff line number Diff line change
@@ -41,11 +41,6 @@
margin: -2rem;
}
}
/* pdf */
body.is-pdf-active.is-search-opened .ui__modal {
left: 0;
justify-content: flex-end;
}

.ls-search {
border-radius: 4px;
2 changes: 1 addition & 1 deletion src/modules/header/wideSearch/wideSearch.ts
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ export const onSearchModalOpen = (searchResults: HTMLElement) => {
if (!(globals.pluginConfig.headerVariant === 'Browser-like (wide search)')) {
return;
}
body.classList.add(globals.isSearchOpenedClass);
if (body.classList.contains('is-pdf-active')) {
return;
}
body.classList.add(globals.isSearchOpenedClass);
const searchModal = searchResults.closest('.ui__modal') as HTMLElement;
const searchButton = doc.getElementById('search-button');
if (!searchButton || !searchModal) {
1 change: 1 addition & 0 deletions src/modules/other/other.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './other.css';
1 change: 1 addition & 0 deletions src/modules/pages/pages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './pages.css';
4 changes: 4 additions & 0 deletions src/plugin/plugin.ts
Original file line number Diff line number Diff line change
@@ -11,6 +11,10 @@ import { headerLoad, headerUnload } from '../modules/header/header';
import { toggleHeaderFlashcardsButton, headerFlashcardsButtonUnload } from '../modules/header/flashcardsButton/flashcardButton';
import { toggleHideRightSidebarToolbar, hideRightSidebarToolbarUnload } from '../modules/sidebars/hideRightSidebarToolbar/hideRightSidebarToolbar';

import '../modules/extPlugins/extPlugins';
import '../modules/pages/pages';
import '../modules/other/other';

export const pluginLoad = () => {
body.classList.add(globals.isPluginEnabled);
registerPlugin();