Plugins page update buttons fixed

Word wrap also inserted to display info.
This commit is contained in:
vivalldi
2015-08-26 20:16:50 -04:00
parent b54d5b5fa5
commit ece6496bde
4 changed files with 30 additions and 2 deletions

View File

@@ -810,6 +810,11 @@ tr {
flex: 2; }
tr td:first-child {
padding-left: 3rem; }
@media only all and (max-width: 47.938em) {
tr td:first-child {
padding-left: .5rem; }
tr td:first-child .plugin-update-button {
float: left; } }
tr td:last-child, tr td.gpm-actions {
padding-right: 3rem; }
tr td.gpm-actions {
@@ -824,6 +829,9 @@ tr {
margin: 0;
padding: 0;
background-color: #f7f7f7; }
@media only all and (max-width: 47.938em) {
tr td.gpm-details {
word-wrap: break-word; } }
tr td.gpm-details > .table-wrapper {
display: none; }
tr td.gpm-details > .table-wrapper td {
@@ -2375,6 +2383,9 @@ button.toast-close-button {
padding-bottom: 1rem;
margin-bottom: 3rem;
overflow: hidden; }
@media only all and (max-width: 47.938em) {
.gpm .gpm-item-info {
word-wrap: break-word; } }
.gpm .gpm-item-info .gpm-item-icon {
color: #e6e6e6;
position: absolute;

View File

@@ -342,7 +342,7 @@ $(function () {
plugin = $('[data-gpm-plugin="' + key + '"] .gpm-name');
url = plugin.find('a');
if (!plugin.find('.badge.update').length) {
plugin.append('<a href="' + url.attr('href') + '"><span class="badge update">' + translations.PLUGIN_ADMIN.UPDATE_AVAILABLE + '!</span></a>');
plugin.append('<a class="plugin-update-button" href="' + url.attr('href') + '"><span class="badge update">' + translations.PLUGIN_ADMIN.UPDATE_AVAILABLE + '!</span></a>');
}
});

View File

@@ -46,6 +46,10 @@
margin-bottom: 3rem;
overflow: hidden;
@include breakpoint(mobile-only) {
word-wrap: break-word;
}
.gpm-item-icon {
color: darken($content-bg, 3%);
position: absolute;
@@ -136,4 +140,4 @@
font-weight: normal;
}
}
}
}

View File

@@ -45,6 +45,15 @@ tr {
&:first-child {
padding-left: $padding-default;
@include breakpoint(mobile-only) {
padding-left: .5rem;
.plugin-update-button {
float: left;
}
}
}
&:last-child, &.gpm-actions {
@@ -68,6 +77,10 @@ tr {
padding: 0;
background-color: #f7f7f7;
@include breakpoint(mobile-only){
word-wrap: break-word;
}
> .table-wrapper {
display: none;