Fixed some cross browser issues, chrome and edge suck.

This commit is contained in:
flash 2018-07-07 16:57:10 +02:00
parent 7fb023f3ab
commit a49f79dc45
3 changed files with 17 additions and 7 deletions

View file

@ -40,22 +40,24 @@
&__user, &__user,
&__action { &__action {
display: inline-flex;
color: inherit; color: inherit;
flex: 0 0 auto; flex: 0 0 auto;
margin-right: 1px; margin-right: 1px;
justify-content: center;
align-items: center;
text-decoration: none; text-decoration: none;
display: flex;
align-items: center;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
&__text {
width: 100%;
}
} }
&__user { &__user {
min-width: 100px; min-width: 100px;
justify-content: left;
padding-left: 4px; padding-left: 4px;
@media (max-width: @mio-changelog-mobile) { @media (max-width: @mio-changelog-mobile) {
@ -65,9 +67,12 @@
&__action { &__action {
min-width: 80px; min-width: 80px;
justify-content: right;
padding-right: 4px; padding-right: 4px;
&__text {
text-align: right;
}
@media (max-width: @mio-changelog-mobile) { @media (max-width: @mio-changelog-mobile) {
margin-right: 0; margin-right: 0;
} }

View file

@ -11,6 +11,7 @@ $changelogRange = 30;
$changelogChange = (int)($_GET['c'] ?? 0); $changelogChange = (int)($_GET['c'] ?? 0);
$changelogDate = $_GET['d'] ?? ''; $changelogDate = $_GET['d'] ?? '';
$changelogUser = (int)($_GET['u'] ?? 0);
$tpl->vars([ $tpl->vars([
'changelog_offset' => $changelogOffset, 'changelog_offset' => $changelogOffset,

View file

@ -32,13 +32,17 @@
<a class="changelog__action{{ change.action_class is defined and change.action_class is not null ? ' changelog__action--' ~ change.action_class : '' }} changelog__action--{{ change.action_colour|colour_get_css_contrast }}" <a class="changelog__action{{ change.action_class is defined and change.action_class is not null ? ' changelog__action--' ~ change.action_class : '' }} changelog__action--{{ change.action_colour|colour_get_css_contrast }}"
href="?c={{ change.change_id }}" href="?c={{ change.change_id }}"
{% if change.action_colour is defined %}style="{{ change.action_colour|html_colour({'background-color':'%s'}) }}"{% endif %}> {% if change.action_colour is defined %}style="{{ change.action_colour|html_colour({'background-color':'%s'}) }}"{% endif %}>
{{ change.action_name|default('Unknown') }} <div class="changelog__action__text">
{{ change.action_name|default('Unknown') }}
</div>
</a> </a>
<a class="changelog__user" <a class="changelog__user"
href="/profile.php?u={{ change.user_id }}" href="/profile.php?u={{ change.user_id }}"
style="{{ change.user_colour|html_colour }}"> style="{{ change.user_colour|html_colour }}">
{{ change.username }} <div class="changelog__user__text">
{{ change.username }}
</div>
</a> </a>
<a class="changelog__log{% if has_text %} changelog__log--link{% endif %}" <a class="changelog__log{% if has_text %} changelog__log--link{% endif %}"