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

Commit 8e96a0d

Browse files
committed
text inside markdown
1 parent 71b2c12 commit 8e96a0d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/components/TableRow.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RowDataType } from "cdm/FolderModel";
33
import { StyleVariables } from "helpers/Constants";
44
import { c } from "helpers/StylesHelper";
55
import { Literal } from "obsidian-dataview";
6-
import React from "react";
6+
import React, { CSSProperties } from "react";
77
import { MdFileComponent } from "components/obsidianArq/embedMdInteractive";
88
import { TableRowProps } from "cdm/RowTypeModel";
99

@@ -38,9 +38,11 @@ export default function TableRow(tableRowProps: TableRowProps) {
3838
className={`${c(
3939
"td" + (cellIndex === 0 ? " row-context-menu" : "")
4040
)} data-input`}
41-
style={{
42-
fontSize: `${fontSize}px`,
43-
}}
41+
style={
42+
{
43+
"--dbfolder-font-size": `${fontSize}px`,
44+
} as CSSProperties
45+
}
4446
>
4547
{flexRender(cell.column.columnDef.cell, cell.getContext())}
4648
</div>

styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
******************/
44
.database-plugin__container {
55
--dbfolder-line-height: 1rem;
6+
--dbfolder-font-size: 16px;
67
}
78
/*****************
89
* Base
@@ -126,11 +127,14 @@ div.database-plugin__td.data-input:hover {
126127
text-align: -webkit-center;
127128
vertical-align: middle;
128129
line-height: var(--dbfolder-line-height);
130+
font-size: var(--dbfolder-font-size);
129131
}
130132

131133
.database-plugin__td.data-input p {
132134
margin: 0;
135+
font-size: var(--dbfolder-font-size);
133136
}
137+
134138
/** children of data-input fills parent div*/
135139
.data-input > * {
136140
border: none;

0 commit comments

Comments
 (0)