About page `solana` template: profile image is not centred when the layout stacks
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- scss
- Lĩnh vực
- frontend
Hướng nghiên cứu
Issue trỏ đến src/resources/projects/website/about/about.scss, dòng 110–123. Đọc các quy tắc media-breakpoint-down(lg) của bố cục xếp chồng và kiểm tra khai báo align-items: start phía sau ảnh hưởng đến chúng như thế nào. Render ví dụ template solana được cung cấp ở 700px và xác nhận hình ảnh nằm chính giữa phía trên văn bản, trong khi bố cục rộng vẫn là một hàng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Below the lg breakpoint the solana about template stacks the image above the text and centres the text, but the profile image stays on the left.
The stylesheet sets align-items: center for the stacked layout inside a media-breakpoint-down(lg) block, and then declares align-items: start on the next lines.
The second declaration has the same specificity and comes later, so it wins at every width.
Measured on a page with template: solana and an image:
| Viewport | Layout | align-items |
Image |
|---|---|---|---|
| 1280px | row | start | beside the text, as intended |
| 700px | column-reverse | start | at the left edge, 256px left of the centre of the entity |
| 400px | column-reverse | start | at the left edge, 106px left of the centre of the entity |
The text is centred in both stacked cases, so the page looks unbalanced.
At 1280px the layout is a row, as intended:
At 700px the image stays at the left edge:
Steps to reproduce
_quarto.yml:
project:
type: website
website:
title: t
index.qmd:
---
title: "Jane Doe"
about:
template: solana
image: me.svg
image-width: 8em
links:
- text: Example
href: https://example.org
---
Jane writes about examples.
Render it and view the page at 700px wide.
Actual behavior
The image sits at the left edge of the stacked column, with the text centred below it.
Expected behavior
The image is centred above the text when the layout stacks, as the align-items: center in the stacked block intends.
Your environment
- IDE: none, terminal only
- OS: macOS (Darwin 27.0.0, Apple Silicon)
Quarto check output
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 69592e5c1718d3e1b2f3d11e757d32e23a16af67
- Ngôn ngữ chính
- JavaScript
- Star
- 6.1k
- Fork
- 471
- Merge trung bình
- 17 giờ 35 phút
- Pull request đã merge (30 ngày)
- 107
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto-cli
-
accessibility bug html websites
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
quarto-dev/quarto-cli#15187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement themes websites
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
quarto-dev/quarto-cli#15179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug websites
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
quarto-dev/quarto-cli#15176 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y: prev/next page links and title breadcrumbs use `$text-muted` and fail contrast on dark themesĐang mởaccessibility bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
quarto-dev/quarto-cli#15175 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug code-blocks
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quarto-dev/quarto-cli#15174 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto-cli
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melodic-software/claude-code-plugins#9619 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Frontend P2-medium UI UX
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Deepak3699/Ai_Mentor#427 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingĐang mởarea: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
venn: a name that starts with set-, union-, text- or style- followed by a letter is a parse errorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
obsidianmd/pele#65 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
11ty/buildawesome#4407 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày