-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
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. |
@@ -61,11 +61,12 @@ a, a:hover { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 1px; | |||
padding-left: 8px; | |||
margin-left: 13px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one too 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should document this math, otherwise it will break again and again…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certainly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> ![)RW`SDJ_UQL@$}0 PL(3DS7](https://github.com/go-gitea/gitea/assets/70063547/5fa523a4-44c3-4cb9-a882-a3ea6d944673) --------- Co-authored-by: silverwind <me@silverwind.io>
Add border to file tree 'sub-items'
close #24766
view in
gitea-light
view in
gitea-dark
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'