b44ui 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.tsx +1 -1
- package/package.json +1 -1
- package/styles.css +4 -1
package/index.tsx
CHANGED
|
@@ -120,7 +120,7 @@ export const Select = ({ cn, grow, ...rest }: { cn?: any, grow?: boolean } & Rea
|
|
|
120
120
|
<select className={CN("rounded bg-zinc-800 border border-zinc-700 px-3 py-2 text-sm outline-none cursor-pointer", grow && "flex-1", cn)} {...rest} />
|
|
121
121
|
|
|
122
122
|
export const Grid = ({ children, cols, cn, grow, gap, p }: DProps & { cols?: number }) =>
|
|
123
|
-
<D cn={["grid", cn]} grow={grow} p={p} style={{ gap: sc(gap ?? 4),
|
|
123
|
+
<D cn={["grid ui-grid", cn]} grow={grow} p={p} style={{ gap: sc(gap ?? 4), '--cols': cols ?? Children.count(children) } as React.CSSProperties}>{children}</D>
|
|
124
124
|
|
|
125
125
|
const marked = new Marked(markedHighlight({ langPrefix: "hljs language-", highlight: c => hljs.highlightAuto(c).value }))
|
|
126
126
|
export const Md = ({ children, className }: { children: string, className?: string }) => {
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -16,4 +16,7 @@
|
|
|
16
16
|
.ui-markdown a { color: #93c5fd; text-decoration: underline; }
|
|
17
17
|
.ui-markdown table { border-collapse: collapse; margin: 0.4em 0; }
|
|
18
18
|
.ui-markdown th, .ui-markdown td { border: 1px solid #333; padding: 4px 10px; }
|
|
19
|
-
.ui-markdown img { max-width: 100%; border-radius: 6px; }
|
|
19
|
+
.ui-markdown img { max-width: 100%; border-radius: 6px; }
|
|
20
|
+
|
|
21
|
+
.ui-grid { grid-template-columns: repeat(var(--cols), 1fr); }
|
|
22
|
+
@media (max-width: 640px) { .ui-grid { grid-template-columns: 1fr; } }
|