Skip to content

Commit

Permalink
truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Dornfeld authored and runabol committed Nov 10, 2023
1 parent 813862e commit a2373be
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ body {
)
rgb(var(--background-start-rgb));
}

.hostname {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 185px;
display: inline-block;
padding-top: 18px;
}
2 changes: 1 addition & 1 deletion app/nodes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function Nodes() {
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
{node.name}
</td>
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
<td className="hostname whitespace-nowrap px-3 py-4 text-sm text-gray-500">
{node.hostname}
</td>
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tork-web",
"version": "0.1.2",
"version": "0.1.3",
"private": true,
"scripts": {
"dev": "dotenv -c -- next dev",
Expand Down

0 comments on commit a2373be

Please sign in to comment.