Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 95b438a

Browse files
committed
minor fixes
1 parent b119a12 commit 95b438a

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/DatabaseView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class DatabaseView extends TextFileView implements HoverParent {
120120
.addItem((item) => {
121121
item
122122
.setTitle("Open database settings")
123-
.setIcon("gear")
123+
.setIcon("dbfolderIcon")
124124
.onClick(() => {
125125
new SettingsModal(
126126
this,

src/components/PaginationTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import ButtonGroup from "@mui/material/ButtonGroup";
33
import TextField from "@mui/material/TextField";
44
import { PaginationProps } from "cdm/MenuBarModel";
55
import React, { useEffect } from "react";
6-
import { PaginationButtonStyle } from "components/styles/NavBarSearchStyles";
6+
import { PaginationButtonStyle } from "components/styles/NavBarStyles";
7+
import { StyleVariables } from "helpers/Constants";
78
function PaginationTable(props: PaginationProps) {
89
const { table } = props;
910
const [page, setPage] = React.useState(1);
@@ -56,6 +57,7 @@ function PaginationTable(props: PaginationProps) {
5657
type="number"
5758
InputLabelProps={{
5859
shrink: true,
60+
style: { color: StyleVariables.TEXT_NORMAL },
5961
}}
6062
style={{ width: "100px" }}
6163
InputProps={{

src/components/reducers/GlobalFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
DebouncedInputWrapper,
55
Search,
66
SearchIconWrapper,
7-
} from "components/styles/NavBarSearchStyles";
7+
} from "components/styles/NavBarStyles";
88
import SearchIcon from "@mui/icons-material/Search";
99
import DebouncedInput from "components/behavior/DebouncedInputFn";
1010

File renamed without changes.

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
ViewState,
88
Platform,
99
MarkdownView,
10+
addIcon,
1011
} from 'obsidian';
1112

1213
import {
@@ -95,6 +96,7 @@ export default class DBFolderPlugin extends Plugin {
9596
this.registerEvents();
9697
this.registerMonkeyPatches();
9798
this.addMarkdownPostProcessor();
99+
addIcon("dbfolderIcon", `<circle cx="50" cy="50" r="50" fill="currentColor" />`);
98100
// Mount an empty component to start; views will be added as we go
99101
this.mount(window);
100102

styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ div.database-plugin__checkbox {
296296
cursor: pointer;
297297
bottom: 0;
298298
z-index: 3;
299-
position: fixed;
300-
opacity: 0.9;
299+
opacity: 0.8;
300+
position: sticky;
301301
left: 0;
302302
background-color: var(--background-primary);
303303
}

0 commit comments

Comments
 (0)