Skip to content
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

feat(moderation): reduce spacing size #576

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default new Hono().get(
async function GET({ render, req }) {
const { id } = req.valid("param");
const { organization_id, user_id } = req.valid("query");

return render(
<Duplicate_Warning
moderation_id={id}
Expand Down
12 changes: 6 additions & 6 deletions packages/~/moderations/api/src/:id/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async function Moderation_Page() {
<Header />
</Header.Provier>

<hr class="my-12" />
<hr class="my-3" />

<div class="grid grid-cols-2 gap-6">
<About_User user={moderation.user} />
Expand Down Expand Up @@ -103,21 +103,21 @@ export default async function Moderation_Page() {
user={moderation.user}
query_organization_count={CountUserMemberships({ pg: moncomptepro_pg })}
/>
<hr class="my-12" />
<hr class="my-3" />

<DomainsByOrganization
organization={moderation.organization}
query_domain_count={query_domain_count}
/>

<hr class="my-12 bg-none" />
<hr class="my-3 bg-none" />

<UsersByOrganization
organization={moderation.organization}
query_members_count={query_organization_members_count}
/>

<hr class="my-12 bg-none" />
<hr class="my-3 bg-none" />

<Actions
value={{
Expand All @@ -131,11 +131,11 @@ export default async function Moderation_Page() {
}}
/>

<hr class="my-12 bg-none" />
<hr class="my-3 bg-none" />

<hr />

<hr class="my-12 bg-none" />
<hr class="my-3 bg-none" />

<Moderation_Exchanges />
</main>
Expand Down
4 changes: 2 additions & 2 deletions packages/~/moderations/ui/src/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export async function Header() {
</div>
</section>

<hr class="bg-none" />

<ModerationCallout />

<hr class="bg-none" />
Expand Down Expand Up @@ -109,6 +107,8 @@ async function ModerationCallout() {

return (
<div class={base()}>
<hr class="bg-none" />

<h3 class={text()}>Modération traitée</h3>
<p class={title()}>
Cette modération a été marqué comme traitée le{" "}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ exports[`render header section 1`] = `
<div><p class="fr-badge fr-badge--new">A traiter</p></div>
</section>
<hr class="bg-none" />
<hr class="bg-none" />
<div class="fr-notice fr-notice--info">
<div class="fr-container">
<div class="fr-notice__body">
Expand Down