Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

style(people): Fix convert dropdown single-category formatting and admin table header styling (#7139)

brioscc1c6bc9e37e
diff --git a/frontend/editor/src/proprietary/components/shared/config/configSections/PeopleSection.tsx b/frontend/editor/src/proprietary/components/shared/config/configSections/PeopleSection.tsx
index 10e9f39fb0..d955cb341b 100644
--- a/frontend/editor/src/proprietary/components/shared/config/configSections/PeopleSection.tsx
+++ b/frontend/editor/src/proprietary/components/shared/config/configSections/PeopleSection.tsx
@@ -588,38 +588,22 @@ export default function PeopleSection() {
</Group>
{/* Members Table */}
- <Table
- horizontalSpacing="md"
- verticalSpacing="sm"
- withRowBorders
- style={
- {
- "--table-border-color": "var(--mantine-color-gray-3)",
- } as React.CSSProperties
- }
- >
+ <Table horizontalSpacing="md" verticalSpacing="sm" withRowBorders>
<Table.Thead>
- <Table.Tr style={{ backgroundColor: "var(--mantine-color-gray-0)" }}>
- <Table.Th
- style={{ fontWeight: 600, color: "var(--mantine-color-gray-7)" }}
- fz="sm"
- >
+ <Table.Tr>
+ <Table.Th style={{ fontWeight: 600 }} fz="sm">
{t("workspace.people.user")}
</Table.Th>
<Table.Th
style={{
fontWeight: 600,
- color: "var(--mantine-color-gray-7)",
whiteSpace: "nowrap",
}}
fz="sm"
>
{t("workspace.people.role")}
</Table.Th>
- <Table.Th
- style={{ fontWeight: 600, color: "var(--mantine-color-gray-7)" }}
- fz="sm"
- >
+ <Table.Th style={{ fontWeight: 600 }} fz="sm">
{t("workspace.people.team")}
</Table.Th>
<Table.Th w={50}></Table.Th>
diff --git a/frontend/editor/src/proprietary/components/shared/config/configSections/TeamDetailsSection.tsx b/frontend/editor/src/proprietary/components/shared/config/configSections/TeamDetailsSection.tsx
index cabdfb642c..d3702e7f80 100644
--- a/frontend/editor/src/proprietary/components/shared/config/configSections/TeamDetailsSection.tsx
+++ b/frontend/editor/src/proprietary/components/shared/config/configSections/TeamDetailsSection.tsx
@@ -408,29 +408,13 @@ export default function TeamDetailsSection({
</Group>
{/* Members Table */}
- <Table
- horizontalSpacing="md"
- verticalSpacing="sm"
- withRowBorders
- style={
- {
- "--table-border-color": "var(--mantine-color-gray-3)",
- } as React.CSSProperties
- }
- >
+ <Table horizontalSpacing="md" verticalSpacing="sm" withRowBorders>
<Table.Thead>
- <Table.Tr style={{ backgroundColor: "var(--mantine-color-gray-0)" }}>
- <Table.Th
- style={{ fontWeight: 600, color: "var(--mantine-color-gray-7)" }}
- fz="sm"
- >
+ <Table.Tr>
+ <Table.Th style={{ fontWeight: 600 }} fz="sm">
{t("workspace.people.user")}
</Table.Th>
- <Table.Th
- style={{ fontWeight: 600, color: "var(--mantine-color-gray-7)" }}
- fz="sm"
- w={100}
- >
+ <Table.Th style={{ fontWeight: 600 }} fz="sm" w={100}>
{t("workspace.people.role")}
</Table.Th>
<Table.Th w={50}></Table.Th>
diff --git a/frontend/editor/src/proprietary/components/shared/config/configSections/TeamsSection.tsx b/frontend/editor/src/proprietary/components/shared/config/configSections/TeamsSection.tsx
index 4559296afe..d4da200d59 100644
--- a/frontend/editor/src/proprietary/components/shared/config/configSections/TeamsSection.tsx
+++ b/frontend/editor/src/proprietary/components/shared/config/configSections/TeamsSection.tsx
@@ -298,19 +298,13 @@ export default function TeamsSection() {
verticalSpacing="sm"
withRowBorders
highlightOnHover
- style={
- {
- "--table-border-color": "var(--mantine-color-gray-3)",
- } as React.CSSProperties
- }
>
<Table.Thead>
- <Table.Tr style={{ backgroundColor: "var(--mantine-color-gray-0)" }}>
+ <Table.Tr>
<Table.Th
style={{
fontWeight: 600,
fontSize: "0.875rem",
- color: "var(--mantine-color-gray-7)",
}}
>
{t("workspace.teams.teamName")}
@@ -319,7 +313,6 @@ export default function TeamsSection() {
style={{
fontWeight: 600,
fontSize: "0.875rem",
- color: "var(--mantine-color-gray-7)",
}}
>
{t("workspace.teams.totalMembers")}