-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #2309 Show a visible link to the docs of each package (javiereg…
…uiluz, Kocal) This PR was merged into the 2.x branch. Discussion ---------- Show a visible link to the docs of each package | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | #2273 | License | MIT I know that you mentioned that there's a work-in-progress effort to update some things in the current design (#2273 (comment)) but I think we should fix this issue quickly because it's a problem in many long package pages. If you don't like the proposed changes here it's fine; let's iterate over them. Tell me what to fix or change and I'll do it. Thanks! This is how this PR looks at the moment: ![](https://github.com/user-attachments/assets/372918e7-c72e-4d03-8f5a-5e56d8a9c76b) #SymfonyHackday :) Commits ------- 7c2ad1d [Site] Rework "Read the docs" button on packages pages 3bc80c5 Show a visible link to the docs of each package
- Loading branch information
Showing
4 changed files
with
64 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
<div {{ attributes.defaults({class: 'DocsLink'}) }}> | ||
<div {{ attributes.defaults({class: 'DocsLink DocsLink-' ~ size}) }}> | ||
<div class="DocsLink_content"> | ||
<p class="DocsLink_title ubuntu-header"> | ||
<a href="{{ url }}" class="DocsLink_link" | ||
rel="{{ isExternal ? 'external noopened noreferrer' }}" | ||
>{{ title }}</a> | ||
{% if icon|default %} | ||
<twig:ux:icon name="{{ icon }}" class="Icon DocsLink_arrow"/> | ||
{% elseif isExternal %} | ||
<twig:ux:icon name="arrow-right" style="transform: rotate(-45deg);" class="Icon DocsLink_arrow"/> | ||
{% endif %} | ||
</p> | ||
<div class="DocsLink_description"> | ||
<p>{{ text }}</p> | ||
</div> | ||
{% if isSmall %} | ||
<p class="d-flex align-items-center"> | ||
<twig:ux:icon name="mdi:book-open-variant-outline" class="Icon me-2" /> | ||
|
||
<a href="{{ url }}" class="DocsLink_link" | ||
rel="{{ isExternal ? 'external noopened noreferrer' }}" | ||
>{{ title }}</a> | ||
</p> | ||
{% else %} | ||
<p class="DocsLink_title ubuntu-header"> | ||
<a href="{{ url }}" class="DocsLink_link" rel="{{ isExternal ? 'external noopened noreferrer' }}"> | ||
{{ title }} | ||
</a> | ||
{% if icon|default %} | ||
<twig:ux:icon name="{{ icon }}" class="Icon DocsLink_arrow"/> | ||
{% elseif isExternal %} | ||
<twig:ux:icon name="arrow-right" style="transform: rotate(-45deg);" class="Icon DocsLink_arrow"/> | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
|
||
{% if text %} | ||
<div class="DocsLink_description"> | ||
<p>{{ text }}</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters