make pixel avatar dynamic
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Honor an explicit size on the pixel-art avatar, so the repository header's avatar is no longer stuck at the 16px default
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ impl RenderOnce for PixelAvatar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div()
|
div()
|
||||||
.refine_style(&self.style)
|
|
||||||
.grid()
|
.grid()
|
||||||
.grid_cols(GRID_SIZE as u16)
|
.grid_cols(GRID_SIZE as u16)
|
||||||
.grid_rows(GRID_SIZE as u16)
|
.grid_rows(GRID_SIZE as u16)
|
||||||
@@ -88,6 +87,7 @@ impl RenderOnce for PixelAvatar {
|
|||||||
.overflow_hidden()
|
.overflow_hidden()
|
||||||
.bg(main.opacity(0.16))
|
.bg(main.opacity(0.16))
|
||||||
.children(cells)
|
.children(cells)
|
||||||
|
.refine_style(&self.style)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user