Skip to content

Commit

Permalink
chore: update font class in App.tsx and Colors.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Nov 12, 2024
1 parent 0be11c0 commit ef67f0c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion entrypoints/injected/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default () => {
dragPropagation={false}
dragListener={false}
dragControls={controls}
className={`fubukicss-panel fixed top-10 right-20 text-xs text-$color-text bg-$color-bg rounded border-1 border-$color-border border-solid shadow-md z-10 antialiased h-auto transition-width !font-['Inter'] js-fullscreen-prevent-event-capture ${minimized ? 'w-50' : 'w-80'} max-h-[calc(100vh-50px)] overflow-y-scroll scrollbar-hide select-none`}
className={`fubukicss-panel fixed top-10 right-20 text-xs text-$color-text bg-$color-bg rounded border-1 border-$color-border border-solid shadow-md z-10 antialiased h-auto transition-width font-[Inter] js-fullscreen-prevent-event-capture ${minimized ? 'w-50' : 'w-80'} max-h-[calc(100vh-50px)] overflow-y-scroll scrollbar-hide select-none`}
tabIndex={-1}
onDragEnd={() => {
const dom = document.querySelector('.fubukicss-panel') as HTMLDivElement
Expand Down
4 changes: 2 additions & 2 deletions entrypoints/injected/components/Colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ export const Colors = memo((props: { minimized?: boolean }) => {
type="text"
readOnly
value={formatColor(c)}
className="ml-4 w-full font-400 text-xs font-['Inter'] bg-transparent text-$color-text hover:underline"
className="ml-4 w-full font-400 text-xs font-[Inter] bg-transparent text-$color-text hover:underline"
/>
{colorVars[index]?.name && (
<CopyContent>
<span className="font-400 text-xs font-['Inter'] bg-transparent text-$color-text">
<span className="font-400 text-xs font-[Inter] bg-transparent text-$color-text">
{colorVars[index]?.name.split('/').join('-').toLocaleLowerCase()}
</span>
</CopyContent>
Expand Down
4 changes: 2 additions & 2 deletions entrypoints/injected/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const Header = forwardRef(function ({ minimized, onToggleSize, startDrag }: Prop
)}
<span className="flex-1 font-700 text-sm">Fubukicss Tool</span>
<div
className="p-.5 flex-center rounded bg-#eee"
className="p-.5 flex-center rounded"
onMouseDown={(e) => {
e.stopPropagation()
}}
Expand All @@ -130,7 +130,7 @@ const Header = forwardRef(function ({ minimized, onToggleSize, startDrag }: Prop
className="mr-1.5 text-$color-text-secondary hover:text-$color-text cursor-pointer"
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56 z-1001 border-1 border-solid border-border font-['Inter']">
<DropdownMenuContent className="w-56 z-1001 border-1 border-solid border-border font-[Inter]">
<DropdownMenuLabel className="cursor-default">Settings</DropdownMenuLabel>

<DropdownMenuSeparator />
Expand Down
1 change: 1 addition & 0 deletions rolldown.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default defineConfig({
output: {
format: 'esm',
dir: './plugin/lib',
minify: true,
},
})

0 comments on commit ef67f0c

Please sign in to comment.