summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-07 09:07:38 +0200
committerWerWolv <werwolv98@gmail.com>2022-04-07 09:08:28 +0200
commita3619d1d3aa3644a30c56056fd27890d06cc48de (patch)
treea29806e49ed46a62a92085c03a75ec9618275784
parent3a39c88144aca9a38103d176b891ca486609db89 (diff)
downloaddecky-loader-a3619d1d3aa3644a30c56056fd27890d06cc48de.tar.gz
decky-loader-a3619d1d3aa3644a30c56056fd27890d06cc48de.zip
Fixed first plugin button being smaller than the other ones
-rw-r--r--plugin_loader/templates/plugin_view.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/plugin_loader/templates/plugin_view.html b/plugin_loader/templates/plugin_view.html
index 2187edae..c95f00fb 100644
--- a/plugin_loader/templates/plugin_view.html
+++ b/plugin_loader/templates/plugin_view.html
@@ -25,34 +25,35 @@
{% endif %}
<div class="quickaccessmenu_TabGroupPanel_1QO7b Panel Focusable">
- <div class="quickaccesscontrols_PanelSectionRow_26R5w">
- {% for plugin in plugins %}
- {% if plugin.tile_view_html|length %}
- <div onclick="loadPlugin('{{ plugin.name }}')"
- class="basicdialog_Field_ugL9c basicdialog_WithChildrenBelow_1RjOd basicdialog_InlineWrapShiftsChildrenBelow_3a6QZ basicdialog_ExtraPaddingOnChildrenBelow_2-owv basicdialog_StandardPadding_1HrfN basicdialog_HighlightOnFocus_1xh2W Panel Focusable"
- style="--indent-level:0;">
- <iframe id="tile_view_iframe_{{ plugin.name }}" style="display:block; padding: 0; border: none;" scrolling="no"
- src="/plugins/load_tile/{{ plugin.name }}"></iframe>
- <script>
- (function() {
- let iframe = document.getElementById("tile_view_iframe_{{ plugin.name }}");
- tile_iframes.push(document.getElementById("tile_view_iframe_{{ plugin.name }}"));
- iframe.onload = function() {
- let html = iframe.contentWindow.document.children[0];
- let last_height = 0;
- setInterval(function() {
- let height = iframe.contentWindow.document.children[0].scrollHeight;
- if (height != last_height) {
- iframe.height = height + "px";
- last_height = height;
- }
- }, 100);
- iframe.contentWindow.document.body.onclick = function () {
- loadPlugin('{{ plugin.name }}');
- };
- }
- })();
- </script>
+ {% for plugin in plugins %}
+ {% if plugin.tile_view_html|length %}
+ <div class="quickaccesscontrols_PanelSectionRow_26R5w">
+ <div onclick="loadPlugin('{{ plugin.name }}')"
+ class="basicdialog_Field_ugL9c basicdialog_WithChildrenBelow_1RjOd basicdialog_InlineWrapShiftsChildrenBelow_3a6QZ basicdialog_ExtraPaddingOnChildrenBelow_2-owv basicdialog_StandardPadding_1HrfN basicdialog_HighlightOnFocus_1xh2W Panel Focusable"
+ style="--indent-level:0;">
+ <iframe id="tile_view_iframe_{{ plugin.name }}" style="display:block; padding: 0; border: none;" scrolling="no"
+ src="/plugins/load_tile/{{ plugin.name }}"></iframe>
+ <script>
+ (function() {
+ let iframe = document.getElementById("tile_view_iframe_{{ plugin.name }}");
+ tile_iframes.push(document.getElementById("tile_view_iframe_{{ plugin.name }}"));
+ iframe.onload = function() {
+ let html = iframe.contentWindow.document.children[0];
+ let last_height = 0;
+ setInterval(function() {
+ let height = iframe.contentWindow.document.children[0].scrollHeight;
+ if (height != last_height) {
+ iframe.height = height + "px";
+ last_height = height;
+ }
+ }, 100);
+ iframe.contentWindow.document.body.onclick = function () {
+ loadPlugin('{{ plugin.name }}');
+ };
+ }
+ })();
+ </script>
+ </div>
</div>
{% else %}
<div class="quickaccesscontrols_PanelSectionRow_26R5w">
@@ -68,5 +69,4 @@
</div>
{% endif %}
{% endfor %}
- </div>
</div>