Skip to content

Commit 16b8e43

Browse files
committed
Style tweaks for console editor in fullscreen mode.
1 parent 3adf5d3 commit 16b8e43

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

TracyDebugger.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function getModuleInfo() {
2727
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
2828
'author' => 'Adrian Jones',
2929
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
30-
'version' => '4.26.55',
30+
'version' => '4.26.56',
3131
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
3232
'singular' => true,
3333
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',

panels/ConsolePanel.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,21 +1574,21 @@ function loadFAIfNotAlreadyLoaded() {
15741574
';
15751575

15761576
$out .= '
1577-
<div>
1578-
<span style="display: inline-block; padding: 0 20px 10px 0">
1577+
<div style="margin-bottom: 7px">
1578+
<span style="display: inline-block; padding: 0 20px 5px 0">
15791579
<input id="reloadSnippet" title="Reload current snippet from disk" class="disabledButton" style="font-family: FontAwesome !important; padding: 3px 8px !important" type="submit" onclick="tracyConsole.reloadSnippet()" value="&#xf021" disabled="true" />&nbsp;&nbsp;
15801580
<input style="font-family: FontAwesome !important" title="Go back (ALT + PageUp)" id="historyBack" class="disabledButton" disabled="true" type="submit" onclick="tracyConsole.loadHistory(\'back\')" value="&#xf060;" />&nbsp;
15811581
<input style="font-family: FontAwesome !important" title="Go forward (ALT + PageDown)" id="historyForward" class="disabledButton" disabled="true" type="submit" onclick="tracyConsole.loadHistory(\'forward\')" value="&#xf061;" />&nbsp;
15821582
<input title="Clear results" type="button" class="clearResults" onclick="tracyConsole.clearResults()" value="&#10006; Clear results" />
15831583
</span>
15841584
1585-
<span style="display: inline-block; padding: 0 20px 10px 0">
1585+
<span style="display: inline-block; padding: 0 20px 5px 0">
15861586
<label title="Backup entire database before executing script.">
15871587
<input type="checkbox" id="dbBackup" '.($this->wire('input')->cookie->tracyDbBackup ? 'checked="checked"' : '').' onclick="tracyConsole.updateBackupState();" /> Backup DB
15881588
</label>&nbsp;&nbsp;
15891589
<input id="backupFilename" type="text" placeholder="Backup name (optional)" '.($this->wire('input')->cookie->tracyDbBackup ? 'style="display:inline-block !important"' : 'style="display:none !important"').' '.($this->wire('input')->cookie->tracyDbBackupFilename ? 'value="'.$this->wire('input')->cookie->tracyDbBackupFilename.'"' : '').' />
15901590
</span>
1591-
<span style="display: inline-block; padding: 0 20px 10px 0">
1591+
<span style="display: inline-block; padding: 0 20px 5px 0">
15921592
<label title="Send full stack trace of errors to Tracy bluescreen">
15931593
<input type="checkbox" id="allowBluescreen" /> Allow bluescreen
15941594
</label>
@@ -1597,7 +1597,7 @@ function loadFAIfNotAlreadyLoaded() {
15971597

15981598
if(!$inAdmin) {
15991599
$out .= '
1600-
<span style="display: inline-block; padding: 0 20px 10px 0">
1600+
<span style="display: inline-block; padding: 0 20px 5px 0">
16011601
<label title="Access custom variables & functions from this page\'s template file & included files."><input type="checkbox" id="accessTemplateVars" onclick="tracyConsole.tce.focus();" /> Template resources</label>
16021602
</span>';
16031603
}

styles/styles.css

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ ul.pw-info-links {
750750
display: flex;
751751
align-items: center;
752752
width: 100%;
753+
background: #FFFFFF;
753754
}
754755

755756
#tracyTabsWrapper {
@@ -760,36 +761,37 @@ ul.pw-info-links {
760761
white-space: nowrap;
761762
margin: 0;
762763
padding: 0;
763-
}
764+
background: #FFFFFF;
765+
}
764766

765-
#tracyTabs {
767+
#tracyTabs {
766768
display: inline-flex;
767769
align-items: center;
768-
margin: 5px 0 0 0;
769-
}
770+
margin: 0;
771+
}
770772

771-
#tracyTabs button {
773+
#tracyTabs button {
772774
flex-shrink: 0; /* Prevent buttons from shrinking */
773775
margin: 0 4px 0 0;
774776
padding: 5px 7px 5px 0;
775777
cursor: pointer;
776778
border: solid #ccc;
777779
border-width: 1px 1px 0 1px;
778780
background-color: white;
779-
}
781+
}
780782

781-
#tracyTabsWrapper::-webkit-scrollbar {
783+
#tracyTabsWrapper::-webkit-scrollbar {
782784
height: 6px;
783-
}
785+
}
784786

785-
#tracyTabsWrapper::-webkit-scrollbar-thumb {
787+
#tracyTabsWrapper::-webkit-scrollbar-thumb {
786788
background: #888;
787789
border-radius: 3px;
788-
}
790+
}
789791

790-
#tracyTabsWrapper::-webkit-scrollbar-thumb:hover {
792+
#tracyTabsWrapper::-webkit-scrollbar-thumb:hover {
791793
background: #555;
792-
}
794+
}
793795

794796
#tracyTabs button.active {
795797
background-color: #e6ebf2;

0 commit comments

Comments
 (0)