mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
Cover image
What it is
A card's cover image is the picture you see first, before you open the card - like the cover of a book or a magazine. In WeKan it is one of the card's image attachments, shown on the minicard under the title and at the top of the opened card. The minicard can also show the count of the card's attachments.
Read more
- Wikipedia: Cover art and Thumbnail.
- In WeKan: Attachments, Drawing, Linked cards and Board Settings / Card.
How to use it
Make an image the cover:
- Open the card and add an image attachment (upload, paste or drag and drop). A newly uploaded image becomes the cover by itself, and so does a newly saved drawing.
- To choose another image, open that attachment's menu (☰, Attachment Actions) and click Add cover image to minicard.
Remove the cover: open the cover attachment's menu and click Remove cover image from minicard. The attachment stays on the card.
Show or hide it, and the attachment count:
- Board sidebar (hamburger menu) → Board Settings → Card.
- Row Cover image: Show on Minicard and Show on Card (both on by default).
- Row Count of attachments: Show on Minicard draws the paperclip badge with the count (off by default), Show on Card the count on the Attachments heading.
How the numbers are calculated
- Count of attachments: the number of the card's attachments
(
attachments.lengthin client/components/cards/minicard.jade), drawn only when it is more than 0. - Cover: one per card, the attachment whose id is the card's
coverId. It is drawn from the attachment's thumbnail (attachmentPreviewUrl), at 512 × 120 on the minicard and 512 × 180 on the opened card; clicking it shows the original.
How it works in WeKan
- The card's
coverIdfield;setCover(id)andunsetCover()in models/cards.js write the real card of a linked card. - client/components/cards/attachments.js -
an uploaded or pasted image calls
card.setCover; theattachmentActionsPopupin attachments.jade offers Add / Remove cover for image attachments only. - models/lib/linkedCardCover.js -
resolveCoverId: a linked card shows the cover of the card it links to (#5666). - The board flags
allowsCoverAttachmentOnMinicard,allowsCoverAttachmentOnCardandallowsBadgeAttachmentOnMinicardin models/boards.js; the rowscoverandattachmentCountin models/lib/cardSettingsRows.js. - Tests: tests/linkedCardCover.test.cjs.
Description
- Cover image = Image that you see first at not yet opened minicard, book, or magazine.
- Minicard = At board, small card, that you have not yet clicked to open card.
- Thumbnail Image = Small Picture of Attachment Image, like at Minicard and Card.
- At opened card, when you click thumbnail, it opens big picture slideshow.
Minicard Cover Image and Count of attachments
Commits
- Cover on by default, and a new drawing is the cover
- An SVG is shown as an image, a cover too
- A real cover picture on cards again, and a neutral attachment tile
- Image attachments are served as thumbnails
- A linked card shows the cover of the card it links to
- Copying a card copies its cover
- No spurious minicard cover element
- Cover image margin under the hamburger menu and due date
- Fix the Remove Cover button's error
- Fix the minicard cover
- Cover image works again
- An image uploaded by drag and drop becomes the cover
- The latest uploaded image becomes the cover
- Fix scaling of cover images