mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-26 00:02:13 -04:00
This fixes #12119 while simplifying the page a bit. It also drops dependency on `/web_src/css/modules/card.css` module. Only the profile page still relies on it. As an observation, I find the text "Please click the button below..." quite inadequate as web copy, but I decided to keep it as-is in this pull request. In the `org.css` changes, I also removed references to two `.organization.invite #invite-box` selectors, since I couldn't find it anywhere in the source code. Screenshot:  ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. All work and communication must conform to Forgejo's [AI Agreement](https://codeberg.org/forgejo/governance/src/branch/main/AIAgreement.md). There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests for Go changes (can be removed for JavaScript changes) - I added test coverage for Go changes... - [ ] in their respective `*_test.go` for unit tests. - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I ran... - [ ] `make pr-go` before pushing ### Tests for JavaScript changes (can be removed for Go changes) - I added test coverage for JavaScript changes... - [ ] in `web_src/js/*.test.js` if it can be unit tested. - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)). ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change. - [x] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change. *The decision if the pull request will be shown in the release notes is up to the mergers / release team.* The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12580 Reviewed-by: Antonin Delpeuch <wetneb@noreply.codeberg.org>
207 lines
4.2 KiB
CSS
207 lines
4.2 KiB
CSS
.organization .head .ui.header .ui.right {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.organization.new.org form {
|
|
margin: auto;
|
|
}
|
|
|
|
.organization.new.org form .ui.message {
|
|
text-align: center;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.organization.new.org form {
|
|
width: 800px !important;
|
|
}
|
|
.organization.new.org form .header {
|
|
padding-inline-start: 280px !important;
|
|
}
|
|
.organization.new.org form .inline.field > label {
|
|
text-align: end;
|
|
width: 250px !important;
|
|
word-wrap: break-word;
|
|
}
|
|
.organization.new.org form .help {
|
|
margin-inline-start: 265px !important;
|
|
}
|
|
.organization.new.org form .optional .title {
|
|
margin-inline-start: 250px !important;
|
|
}
|
|
.organization.new.org form .inline.field > input,
|
|
.organization.new.org form .inline.field > textarea {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.organization.new.org form .optional .title {
|
|
margin-inline-start: 15px;
|
|
}
|
|
.organization.new.org form .inline.field > label {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.organization.new.org form .header {
|
|
padding-inline-start: 0 !important;
|
|
text-align: center;
|
|
}
|
|
|
|
.page-content.organization #org-info {
|
|
overflow-wrap: anywhere;
|
|
flex: 1;
|
|
}
|
|
|
|
.page-content.organization #org-info .org-title {
|
|
display: flex;
|
|
column-gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.page-content.organization #org-info .org-title h1 {
|
|
margin: 0;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.page-content.organization #org-info .org-header {
|
|
flex-direction: column;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.page-content.organization #org-info .org-title {
|
|
flex-wrap: wrap;
|
|
width: 100%;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.page-content.organization #org-info .desc {
|
|
font-size: 16px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-content.organization #org-info .meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.page-content.organization .ui.top.header .ui.right {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.page-content.organization.members .list {
|
|
display: grid;
|
|
grid-template-columns: minmax(min-content, auto) 1fr fit-content(100%) fit-content(100%);
|
|
color: var(--color-text-light-2);
|
|
|
|
.divider {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
/* Username (+display name) use header */
|
|
h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.actions {
|
|
display: contents;
|
|
}
|
|
|
|
.link-action, .delete-button {
|
|
align-self: start;
|
|
}
|
|
|
|
a:has(img) {
|
|
margin-inline-end: 0.5rem;
|
|
}
|
|
|
|
.delete-button {
|
|
margin-inline-start: var(--button-spacing);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.page-content.organization.members .list {
|
|
/* Place both buttons in one column */
|
|
grid-template-columns: minmax(min-content, auto) 1fr fit-content(100%);
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--button-spacing);
|
|
}
|
|
|
|
.link-action, .delete-button {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.page-content.organization .teams .item {
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.page-content.organization .members .ui.avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin-inline-end: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.organization.invite .invite-content {
|
|
max-width: 420px;
|
|
margin-inline: auto;
|
|
margin-block: 3rem;
|
|
text-align: center;
|
|
}
|
|
.organization.invite .invite-content :is(h2, p) {
|
|
text-wrap: balance;
|
|
overflow-wrap: break-word;
|
|
}
|
|
.organization.invite .invite-content h2 {
|
|
margin-block-end: 1rem;
|
|
font-size: 1.3rem;
|
|
}
|
|
.organization.invite h2 :is(b, strong) {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
|
|
.organization.teams .detail .item {
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.organization.teams .detail .item:not(:last-child) {
|
|
border-bottom: 1px solid var(--color-secondary);
|
|
}
|
|
|
|
.organization.teams .repositories .item,
|
|
.organization.teams .members .item {
|
|
padding: 10px 19px;
|
|
}
|
|
|
|
.organization.teams .repositories .item:not(:last-child),
|
|
.organization.teams .members .item:not(:last-child) {
|
|
border-bottom: 1px solid var(--color-secondary);
|
|
}
|
|
|
|
.organization.teams .repositories .item .button,
|
|
.organization.teams .members .item .button {
|
|
padding: 9px 10px;
|
|
margin: 0;
|
|
}
|
|
|
|
.org-team-navbar .active.item {
|
|
background: var(--color-box-body) !important;
|
|
}
|
|
|
|
#add-member-modal .team-list {
|
|
max-height: 300px;
|
|
overflow-block: auto;
|
|
}
|