Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions components/Package/DependencyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Props = {
export default function DependencyRow({ name, version, packageExists }: Props) {
const { isSmallScreen } = useLayout();
const versionLabel = getVersionLabel(version);
const hasLongVersion = typeof versionLabel === 'string' && versionLabel.length > 26;
const hasLongVersion = typeof versionLabel === 'string' && versionLabel.length > 18;

return (
<View
Expand Down Expand Up @@ -60,8 +60,8 @@ export default function DependencyRow({ name, version, packageExists }: Props) {
</span>
<Label
style={[
tw`font-mono text-xs leading-[14px] text-secondary`,
hasLongVersion && tw`ml-auto`,
tw`font-mono flex-shrink-0 text-right text-xs leading-[14px] text-secondary`,
hasLongVersion && tw`ml-auto flex-shrink`,
]}>
{getVersionLabel(version)}
</Label>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"rehype-sanitize": "^6.0.0",
"remark-emoji": "^5.0.2",
"remark-gfm": "^4.0.1",
"swr": "^2.3.8",
"swr": "^2.4.0",
"tailwindcss": "^3.4.19",
"twrnc": "^4.16.0",
"use-debounce": "^10.1.0"
Expand Down
12 changes: 12 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ select {
padding-block: 4px;
margin-inline-start: 0;
}

+ div[data-table-wrapper] {
margin-top: 12px;
}
}

li {
Expand Down Expand Up @@ -589,6 +593,10 @@ select {
overflow-x: auto;
border-radius: 9px;
border: 1px solid var(--table-border);

+ div[data-table-wrapper] {
margin-top: 12px;
}
}

table {
Expand Down Expand Up @@ -651,6 +659,10 @@ select {
border: 1px solid var(--table-border);
padding: 5px 8px;

&:empty {
display: none;
}

&:first-child {
border-left: 0;
}
Expand Down