Skip to content

Commit a0fabb2

Browse files
committed
[Dashboard] Minor UI adjustments (#5705)
Fixes: DASH-604, DASH-582 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the functionality and UI of the `ChatBar`, modifying the `PublishedContractTable`, and disabling the invite button in the `InviteSection`. ### Detailed summary - In `ChatBar.tsx`, added a condition to ignore the `Enter` key if the `Shift` key is pressed. - In `PublishedContractTable.tsx`, changed the `span` to have a maximum width and normal whitespace handling. - In `InviteSection.tsx`, set `inviteEnabled` to `false` and disabled the invite button. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 196f677 commit a0fabb2

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/PublishedContractTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function PublishedContractTable(props: PublishedContractTableProps) {
8787
accessor: (row) => row.description,
8888
// biome-ignore lint/suspicious/noExplicitAny: FIXME
8989
Cell: (cell: any) => (
90-
<span className="line-clamp-2 text-muted-foreground">
90+
<span className="line-clamp-2 max-w-[350px] whitespace-normal text-muted-foreground">
9191
{cell.value}
9292
</span>
9393
),

apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export function Chatbar(props: {
2323
value={message}
2424
onChange={(e) => setMessage(e.target.value)}
2525
onKeyDown={(e) => {
26+
// ignore if shift key is pressed to allow entering new lines
27+
if (e.shiftKey) {
28+
return;
29+
}
2630
if (e.key === "Enter" && !props.isChatStreaming) {
2731
setMessage("");
2832
props.sendMessage(message);

apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function InviteSection(props: {
2525
}) {
2626
const teamPlan = getValidTeamPlan(props.team);
2727
let bottomSection: React.ReactNode = null;
28-
const inviteEnabled = teamPlan !== "free" && props.userHasEditPermission;
28+
const inviteEnabled = false; // teamPlan !== "free" && props.userHasEditPermission;
2929

3030
if (teamPlan === "free") {
3131
bottomSection = (
@@ -62,7 +62,12 @@ export function InviteSection(props: {
6262
} else {
6363
bottomSection = (
6464
<div className="flex items-center border-border border-t px-4 py-4 lg:justify-end lg:px-6">
65-
<Button variant="outline" size="sm" className="gap-2 max-sm:w-full">
65+
<Button
66+
variant="outline"
67+
size="sm"
68+
className="gap-2 max-sm:w-full"
69+
disabled
70+
>
6671
<UserPlus className="size-3" />
6772
Invite
6873
</Button>

0 commit comments

Comments
 (0)