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

Align Project board cards vertically, not horizontally #15506

Closed
delvh opened this issue Apr 16, 2021 · 1 comment · Fixed by #15429
Closed

Align Project board cards vertically, not horizontally #15506

delvh opened this issue Apr 16, 2021 · 1 comment · Fixed by #15429

Comments

@delvh
Copy link
Member

delvh commented Apr 16, 2021

  • Gitea version (or commit ref): 1.15.0+dev-152-gc29e85228
  • Can you reproduce the bug at https://try.gitea.io:

Description

Currently, project board cards are aligned horizontally when larger than the underlying project board.
I (and all other Gitea users I have spoken to) think that that is not exactly user friendly.

#13814 is at least partially related to this, but I thought it differs so much that creating its own unique issue for it would be adequate.

What to do

Through some testing, I found out that that behavior is caused by exactly one line of css, which, when removed completely solves this issue on the current try.gitea.io status (don't know whether it applies to older versions too).

The responsible css block is

.board-column > .cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

Simply remove flex-direction: column; and the problem is fixed, at least on my Browser (Firefox). The corresponding file should be _repository.less (exact path is web_src/less/_repository.less), line 2978

Screenshots

image
How it is, but not how it should be

@silverwind
Copy link
Member

#15429 should (also) fix this.

silverwind added a commit to silverwind/gitea that referenced this issue Apr 16, 2021
- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: go-gitea#15424
Fixes: go-gitea#15506
Fixes: go-gitea#15511
techknowlogick added a commit that referenced this issue Apr 20, 2021
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: #15424
Fixes: #15506
Fixes: #15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind added a commit to silverwind/gitea that referenced this issue Apr 20, 2021
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: go-gitea#15424
Fixes: go-gitea#15506
Fixes: go-gitea#15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath pushed a commit that referenced this issue Apr 20, 2021
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: #15424
Fixes: #15506
Fixes: #15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@go-gitea go-gitea locked and limited conversation to collaborators Jun 4, 2021
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 10, 2021
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: go-gitea#15424
Fixes: go-gitea#15506
Fixes: go-gitea#15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants