You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
silverwind c61ed6fad4
Rework repo buttons (#20602, #20718) (#20719)
* Rework repo buttons (#20602)

* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: https://github.com/go-gitea/gitea/issues/13671
Replaces: https://github.com/go-gitea/gitea/pull/20375

* Restore history button and hide add button when unable to add (#20718)

Fix two regressions from #20602:

- Restore the 'History' button that was previously unable to render
  because it's show condition was never hit
- Hide the 'Add File' button when there would be no items in the
  dropdown.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
..
components Fix default merge style for pull requests (#20564) (#20565) 3 years ago
features Rework repo buttons (#20602, #20718) (#20719) 3 years ago
markup Various Mermaid improvements (#18776) 3 years ago
standalone Add new JS linter rules (#17699) 3 years ago
testUtils Update JS dependencies (#19675) 3 years ago
bootstrap.js Bypass Firefox (iOS) bug (#20244) (#20250) 3 years ago
index.js Init popup for new code comment (#20234) (#20235) 3 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 5 years ago
svg.js Auto merge pull requests when all checks succeeded via WebUI (#19648) 3 years ago
svg.test.js Add copy button to markdown code blocks (#17638) 3 years ago
utils.js Prettify number of issues (#17760) 3 years ago
utils.test.js Prettify number of issues (#17760) 3 years ago