Skip to content

Commit

Permalink
Fix custom_repo entry on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Aug 17, 2019
1 parent 149bada commit ae876f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions custom_components/hacs/frontend/elements/hacs.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ td.repository.text {
padding-left: 12px;
}


select.hacs-select.repository {
width: 100%;
}
Expand Down Expand Up @@ -194,6 +195,13 @@ a.dropdown-list-item:hover {
}

@media all and (max-width: 550px) {
select.hacs-select.custom_repository {
width: 100%;
}
input#custom_url {
width: 100% !important;
}

.actionlink {
width: 100%;
padding: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ <h5>CUSTOM REPOSITORIES</h5>
{% if not hacs.system.status.background_task %}
<form class="minigrid" action="/hacsapi/{{ hacs.token }}/repository_register" method="post" accept-charset="utf-8"
enctype="application/x-www-form-urlencoded">
<input id="custom_url" type="text" name="custom_url" placeholder=" ADD CUSTOM REPOSITORY"
style="width: 70%; color: var(--primary-text-color)">
<select name="repository_type" class="hacs-select">
<input class="custom_repository" id="custom_url" type="text" name="custom_url"
placeholder=" ADD CUSTOM REPOSITORY" style="width: 70%; color: var(--primary-text-color)">
<select name="repository_type" class="hacs-select custom_repository">
<option disabled selected value>Category</option>
{% for element_type in hacs.common.categories | sort %}
<option class='hacscolor' value='{{element_type}}'>{{element_type | title}}</option>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ _Contributions for the documentation should go against the `master` branch._

### For contributions to the integration itself (backend/frontend)

_Contributions for the integration should go against the `next` branch._
_Contributions for the integration should go against the `master` branch._

If the contribution is minor, make the change and open a PR (Pull Request).

Expand Down

0 comments on commit ae876f6

Please sign in to comment.