Skip to content
This repository was archived by the owner on Sep 17, 2018. It is now read-only.

Commit 292c1d1

Browse files
anuragteapotastridx
authored andcommitted
Fix button switchers style. (#70)
* button * CS
1 parent 7ad3837 commit 292c1d1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

administrator/components/com_templates/tmpl/template/default.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@
8585
</div>
8686
<?php if ($this->type == 'file' && !empty($this->source->coreFile)) : ?>
8787
<div class="col-md-6 text-right">
88-
<?php echo $this->form->getInput('show_core'); ?>
89-
<?php echo $this->form->getInput('show_diff'); ?>
88+
<div id="toggle-buttons">
89+
<?php echo $this->form->getInput('show_core'); ?>
90+
<?php echo $this->form->getInput('show_diff'); ?>
91+
</div>
9092
</div>
9193
<?php endif; ?>
9294
</div>

build/media/com_templates/css/admin-templates-default.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,17 @@
7070

7171
#jform_show_core {
7272
display: inline;
73-
margin-right: 8em;
7473
}
7574

7675
#jform_show_diff {
7776
display: inline;
78-
margin-right: 5.5em;
77+
margin-left: 3.5em;
78+
}
79+
80+
#toggle-buttons {
81+
margin-right: 5em;
7982
}
8083

8184
.switcher-label-0, .switcher-label-1 {
82-
min-width: 5em;
83-
max-width: 5em;
84-
text-align: left;
85+
white-space: nowrap;
8586
}

0 commit comments

Comments
 (0)