-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Repo List - Style updates #19157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Repo List - Style updates #19157
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b5483a8
adjust prebuilds disabled styling
selfcontained 4be2915
Make headings all semibold
selfcontained 7384299
update icon based on if prebuilds enabled
selfcontained 56c86e8
adjust cell padding
selfcontained 266abdc
shift import button to search row
selfcontained aa685f7
fix search input and button on smaller screens
selfcontained 303a628
adjusting button & input border radius and height to match
selfcontained c9fc6c1
update font size on inputs to match buttons
selfcontained 44e81d8
prevent table from overflowing
selfcontained 6b03b6b
adjust icon sizes
selfcontained c27d5f9
wrap url on smaller screens too
selfcontained File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ import { TextMuted } from "@podkit/typography/TextMuted"; | |
import { Text } from "@podkit/typography/Text"; | ||
import { LinkButton } from "@podkit/buttons/LinkButton"; | ||
import type { Configuration } from "@gitpod/public-api/lib/gitpod/v1/configuration_pb"; | ||
import { cn } from "@podkit/lib/cn"; | ||
import { AlertTriangleIcon, CheckCircle2Icon } from "lucide-react"; | ||
import { TableCell, TableRow } from "@podkit/tables/Table"; | ||
|
||
|
@@ -31,12 +30,12 @@ export const RepositoryListItem: FC<Props> = ({ configuration }) => { | |
<div className="flex flex-col gap-1"> | ||
<Text className="font-semibold">{configuration.name}</Text> | ||
{/* We show the url on a 2nd line for smaller screens since we hide the column */} | ||
<TextMuted className="inline md:hidden text-sm">{url}</TextMuted> | ||
<TextMuted className="inline md:hidden text-sm break-all">{url}</TextMuted> | ||
</div> | ||
</TableCell> | ||
|
||
<TableCell hideOnSmallScreen> | ||
<TextMuted className="text-sm">{url}</TextMuted> | ||
<TextMuted className="text-sm break-all">{url}</TextMuted> | ||
</TableCell> | ||
|
||
<TableCell hideOnSmallScreen>{created}</TableCell> | ||
|
@@ -46,12 +45,10 @@ export const RepositoryListItem: FC<Props> = ({ configuration }) => { | |
{prebuildsEnabled ? ( | ||
<CheckCircle2Icon size={20} className="text-green-500" /> | ||
) : ( | ||
<AlertTriangleIcon size={20} className="text-red-500" /> | ||
<AlertTriangleIcon size={20} className="text-kumquat-base" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Love that we're making this less scary, no prebuild shaming! |
||
)} | ||
|
||
<TextMuted className={cn(!prebuildsEnabled && "text-red-500 dark:text-red-500")}> | ||
{prebuildsEnabled ? "Enabled" : "Disabled"} | ||
</TextMuted> | ||
<TextMuted>{prebuildsEnabled ? "Enabled" : "Disabled"}</TextMuted> | ||
</div> | ||
</TableCell> | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain what this
[&_th]
syntax does?On the Tailwind playground,
[&_th]:py-2
translates to the following, but it did not help too much 😄.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It applies the padding to any descendant
<th>
of the<thead>
component.