Add border to file tree 'sub-items' and add padding to 'item-file'#27593
Conversation
Co-authored-by: silverwind <me@silverwind.io>
That's not this PR. It's the whole indent. The border is always aligned with the icon since the icon width is 18px and the border margin-left is 9px(half the width, so always in the center).
You can directly change the style or discuss it with other maintainers. I have no preference for the style, just randomly choose one. |
|
#27597 will fix the linter config for shorthands. |
| flex-direction: column; | ||
| gap: 1px; | ||
| padding-left: 8px; | ||
| margin-left: 13px; |
There was a problem hiding this comment.
That value is due to some math work 😢
|
|
||
| .sub-items .item-file { | ||
| padding-left: 24px; | ||
| padding-left: 18px; |
There was a problem hiding this comment.
And this one too 😢
There was a problem hiding this comment.
Perhaps we should document this math, otherwise it will break again and again…
There was a problem hiding this comment.
I didn't do any particular math when changing these the last time, I just went with what looked okay.
* giteaoffical/main: Fix issue not showing on default board and add test (go-gitea#27720) Show placeholder email in privacy popup (go-gitea#27770) Add word-break to organization name and description (go-gitea#26624) Add border to file tree 'sub-items' and add padding to 'item-file' (go-gitea#27593) Fix the missing repo count in new team page and edit team page (go-gitea#27743) Only show diff file tree when more than one file changed (go-gitea#27775) Add gap between diff boxes (go-gitea#27776)
…o-gitea#27593) ## Add border to file tree 'sub-items' close go-gitea#24766 view in `gitea-light` <img width="275" alt="image" src="https://github.com/go-gitea/gitea/assets/70063547/f1bf8736-2db3-454f-86f5-d050a2fae3eb"> view in `gitea-dark` <img width="296" alt="image" src="https://github.com/go-gitea/gitea/assets/70063547/053e2e6e-28f7-41d2-a139-1dae4df45929"> ## Change the 'item-file' padding Before that the 'item-file' only have padding when they in 'item-directory', which is too compact when 'item-file' after 'item-directory' <details>  --------- Co-authored-by: silverwind <me@silverwind.io>





Add border to file tree 'sub-items'
close #24766


view in
gitea-lightview in
gitea-darkChange the 'item-file' padding
Before that the 'item-file' only have padding when they in 'item-directory', which is too compact when 'item-file' after 'item-directory'
Details