Skip to content

Commit 1cb0a97

Browse files
authored
update ICON_SIZE to 10, adjust font sizes for overlay elements (#582)
1 parent 3ec9c16 commit 1cb0a97

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

apps/roam/src/components/DiscourseContextOverlay.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type DiscourseContextOverlayBaseProps = {
9393
type DiscourseContextOverlayProps = DiscourseContextOverlayBaseProps &
9494
({ tag: string; uid?: never } | { tag?: never; uid: string });
9595

96-
const ICON_SIZE = 16;
96+
export const ICON_SIZE = 10;
9797

9898
const DiscourseContextOverlay = ({
9999
tag,
@@ -174,7 +174,7 @@ const DiscourseContextOverlay = ({
174174
size={ICON_SIZE}
175175
/>
176176
<span
177-
className={`mr-1 leading-none opacity-${opacity}`}
177+
className={`mr-1 text-xs leading-none opacity-${opacity}`}
178178
style={{ color: textColor }}
179179
>
180180
{loading ? "-" : score}
@@ -186,7 +186,7 @@ const DiscourseContextOverlay = ({
186186
size={ICON_SIZE}
187187
/>
188188
<span
189-
className={`leading-none opacity-${opacity}`}
189+
className={`text-xs leading-none opacity-${opacity}`}
190190
style={{ color: textColor }}
191191
>
192192
{loading ? "-" : refs}
@@ -224,9 +224,9 @@ const Wrapper = ({ parent, tag }: { parent: HTMLElement; tag: string }) => {
224224
>
225225
<div className="flex items-center gap-1.5">
226226
<Icon icon={"diagram-tree"} size={ICON_SIZE} />
227-
<span className={`mr-1 leading-none`}>-</span>
227+
<span className={`mr-1 text-xs leading-none`}>-</span>
228228
<Icon icon={"link"} size={ICON_SIZE} />
229-
<span className={`leading-none`}>-</span>
229+
<span className={`text-xs leading-none`}>-</span>
230230
</div>
231231
</Button>
232232
);

apps/roam/src/components/SuggestiveModeOverlay.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { OnloadArgs } from "roamjs-components/types/native";
66
import { getBlockUidFromTarget } from "roamjs-components/dom";
77
import ExtensionApiContextProvider from "roamjs-components/components/ExtensionApiContext";
88
import { panelManager, subscribeToPanelState } from "./PanelManager";
9+
import { ICON_SIZE } from "./DiscourseContextOverlay";
910

1011
const SuggestiveModeOverlay = ({
1112
tag,
@@ -57,12 +58,13 @@ const SuggestiveModeOverlay = ({
5758
);
5859

5960
return (
60-
<div className="suggestive-mode-overlay items-center max-w-3xl">
61+
<div className="suggestive-mode-overlay max-w-3xl items-center">
6162
<Button
6263
data-dg-role="panel-toggle"
6364
data-dg-tag={tag}
6465
suggestive-mode-overlay-button-uid={blockUid}
6566
icon={isPanelOpen ? "panel-table" : "panel-stats"}
67+
style={{ fontSize: ICON_SIZE }}
6668
minimal
6769
small
6870
intent={isPanelOpen ? "primary" : "none"}

0 commit comments

Comments
 (0)