Skip to content

Commit f56e92a

Browse files
UI improvements
1 parent 07b6f37 commit f56e92a

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

public/css/RollbarWordpressSettings.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
color: hsla(0,0%,100%,.75);
1818
}
1919

20-
#rollbar_settings_advanced table tr td p {
21-
display: inline;
22-
margin-left: 20px;
23-
}
24-
2520
h2.rollbar-header {
2621
background: #2e5174;
2722
padding: 1em;
@@ -31,4 +26,14 @@ h2.rollbar-header {
3126

3227
h2.rollbar-header .logo {
3328
margin-right: 0.5em;
29+
}
30+
31+
.form-table .description {
32+
font-size: 0.8em;
33+
font-style: normal;
34+
}
35+
36+
.setting-inputs {
37+
float: left;
38+
margin-right: 10px;
3439
}

src/Settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ function addSettings()
206206
'type' => UI::getSettingType('enable_must_use_plugin'),
207207
'default' => \Rollbar\Wordpress\Defaults::enableMustUsePlugin(),
208208
'description' => __('Allows Rollbar plugin to be loaded as early ' .
209-
'as possible as a Must-Use plugin.', 'rollbar'),
209+
'as possible as a Must-Use plugin. Activating / ' .
210+
'deactivating the plugin in the plugins admin panel ' .
211+
'won\'t have an effect as long as this option in enabled.', 'rollbar'),
210212
'display_name' => __('Enable as a Must-Use plugin', 'rollbar')
211213
)
212214
);

src/UI.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ public static function setting($args)
99
{
1010
extract($args);
1111

12+
?>
13+
<div class="setting-inputs">
14+
<?php
15+
1216
switch ($type) {
1317
case self::SETTING_INPUT_TYPE_TEXT:
1418
self::textInput($name, $value);
@@ -26,6 +30,10 @@ public static function setting($args)
2630

2731
self::restoreDefault($name, $type, $default);
2832

33+
?>
34+
</div>
35+
<?php
36+
2937
if (!empty($description)) {
3038
self::description($description);
3139
}
@@ -49,7 +57,7 @@ class="button button-secondary rollbar_wp_restore_default"
4957
public static function description($description)
5058
{
5159
?>
52-
<p>
60+
<p class="description">
5361
<?php _e($description, 'rollbar-wp'); ?>
5462
</p>
5563
<?php

0 commit comments

Comments
 (0)