Skip to content

Commit ebae88c

Browse files
authored
[Config] Improve table alignment for "Show custom links in sidebar"
2 parents 8c7aa28 + 4eac430 commit ebae88c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

gc_little_helper_II.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18262,20 +18262,20 @@ var mainGC = function() {
1826218262
var html = '';
1826318263
html += "<tr id='ilinks_element_" + idnr + "' class='ilinks_element_first'>";
1826418264
html += " <td><input id='ilinks_display_" + idnr + "' class='ilinks_display' type='checkbox' " + (ilink.display ? "checked='checked'" : "" ) + "' title='Should the link be displayed?'></td>";
18265-
html += " <td><input id='ilinks_name_" + idnr + "' class='gclh_form ilinks_name ilinks_dep' type='text' title='Name' value='" + convertForHTML(ilink.name) + "' placeholder='Name' style='width: 198px; margin: 1px 0; padding-top: 1px; padding-bottom: 1px;'></td>";
18266-
html += " <td><select id='ilinks_listing_" + idnr + "' class='gclh_form ilinks_listing ilinks_dep' title='Listing' style='width: 75px; padding-top: 1px; padding-bottom: 1px;'>";
18265+
html += " <td><input id='ilinks_name_" + idnr + "' class='gclh_form ilinks_name ilinks_dep' type='text' title='Name' value='" + convertForHTML(ilink.name) + "' placeholder='Name' style='margin: 1px 0;'></td>";
18266+
html += " <td><select id='ilinks_listing_" + idnr + "' class='gclh_form ilinks_listing ilinks_dep' title='Listing' style='padding: 1px 5px;'>";
1826718267
html += " <option " + (ilink.listing == "All" ? "selected=\"selected\"" : "") + ">All</option>";
1826818268
html += " <option " + (ilink.listing == "Caches" ? "selected=\"selected\"" : "") + ">Caches</option>";
1826918269
html += " <option " + (ilink.listing == "Events" ? "selected=\"selected\"" : "") + ">Events</option>";
1827018270
html += " </select></td>";
18271-
html += " <td colspan='2'><select id='ilinks_cachetype_" + idnr + "' class='gclh_form ilinks_cachetype ilinks_dep' title='Cache Type' style='width: 225px; padding-top: 1px; padding-bottom: 1px;'>";
18271+
html += " <td colspan='2'><select id='ilinks_cachetype_" + idnr + "' class='gclh_form ilinks_cachetype ilinks_dep' title='Cache Type' style='width: 203px; padding: 1px 5px;'>";
1827218272
html += createOptionsForCachetype_ilinks(ilink.listing, ilink.cachetype);
1827318273
html += " </select></td>";
1827418274
html += " <td><a class='remove ilinks_delete' href='javascript:void(0);'><img class='' title ='Delete custom link' src='" + global_del_it_icon + "' style='margin-left: 2px; height: 22px; cursor: pointer; vertical-align: top;' / ></a></td>";;
1827518275
html += "</tr>";
1827618276
html += "<tr class='ilinks_element_second'>";
1827718277
html += " <td></td>";
18278-
html += " <td colspan='3'><input id='ilinks_href_" + idnr + "' class='gclh_form ilinks_href ilinks_dep' type='text' title='Link' value='" + convertForHTML(ilink.href) + "' placeholder='Link' style='width: 100%;'></td>";
18278+
html += " <td colspan='3'><input id='ilinks_href_" + idnr + "' class='gclh_form ilinks_href ilinks_dep' type='text' title='Link' value='" + convertForHTML(ilink.href) + "' placeholder='Link' style='width: 395px;'></td>";
1827918279
html += " <td title='Open in new browser tab'><span>new tab</span><input id='ilinks_newtab_" + idnr + "' class='ilinks_newtab ilinks_dep' type='checkbox' " + (ilink.newtab ? "checked='checked'" : "" ) + "'></td>";
1828018280
html += "</tr>";
1828118281
return html;

0 commit comments

Comments
 (0)