Updated template styles

canary
WolverinDEV 2019-03-28 17:29:25 +01:00
parent dd30d9f7af
commit 55463a7811
2 changed files with 22 additions and 26 deletions

View File

@ -412,6 +412,16 @@ $small_device: 800px; /* tested out via audio tab */
} }
} }
.modal .container-tabname-translations {
display: flex;
flex-direction: row;
.country {
align-self: center;
margin-left: 3px;
}
}
.modal .settings-translations { .modal .settings-translations {
margin: 5px; margin: 5px;
@ -475,6 +485,12 @@ $small_device: 800px; /* tested out via audio tab */
background-color: #00000010; background-color: #00000010;
} }
} }
.country {
align-self: center;
margin-right: 5px;
margin-left: 5px;
}
} }
} }

View File

@ -1262,7 +1262,7 @@
</x-entry> </x-entry>
<x-entry> <x-entry>
<x-tag> <x-tag>
{{tr "Translations" /}} <div class="container-tabname-translations">{{tr "Translations" /}} <div class="country flag-en"></div></div>
</x-tag> </x-tag>
<x-content> <x-content>
<div class="settings-translations"> <div class="settings-translations">
@ -1271,18 +1271,6 @@
<div class="content"> <div class="content">
<div class="setting-list"> <div class="setting-list">
<div class="list"> <div class="list">
<!--
<div class="entry default">{{tr "English (Default / Fallback)" /}}</div>
<div class="entry repository">
<div class="name">TeaSpeak Official</div>
<div class="button button-delete"><div class="icon client-delete"></div></div>
<div class="button button-info"><div class="icon client-about"></div></div>
</div>
<div class="entry translation selected">
<div class="name">German (Google Translate)</div>
<div class="button button-info"><div class="icon client-about"></div></div>
</div>
-->
</div> </div>
<div class="management"> <div class="management">
<div class="loading">Loading...</div> <div class="loading">Loading...</div>
@ -1312,18 +1300,6 @@
<div class="content"> <div class="content">
<div class="profile-list"> <div class="profile-list">
<div class="list"> <div class="list">
<!--
<div class="entry default">{{tr "English (Default / Fallback)" /}}</div>
<div class="entry repository">
<div class="name">TeaSpeak Official</div>
<div class="button button-delete"><div class="icon client-delete"></div></div>
<div class="button button-info"><div class="icon client-about"></div></div>
</div>
<div class="entry translation selected">
<div class="name">German (Google Translate)</div>
<div class="button button-info"><div class="icon client-about"></div></div>
</div>
-->
</div> </div>
<div class="management"> <div class="management">
<button class="btn btn-primary button-set-default">{{tr "Set selected as default" /}}</button> <button class="btn btn-primary button-set-default">{{tr "Set selected as default" /}}</button>
@ -1536,9 +1512,13 @@
<div class="button button-info"><div class="icon client-about"></div></div> <div class="button button-info"><div class="icon client-about"></div></div>
</div> </div>
{{else type == "default" }} {{else type == "default" }}
<div class="entry default {{if selected}}selected{{/if}}">{{tr "English (Default / Fallback)" /}}</div> <div class="entry default {{if selected}}selected{{/if}}">
<div class="country flag-gb" title="{{*:i18n.country_name('gb')}}"></div>
<div class="name">{{tr "English (Default / Fallback)" /}}</div>
</div>
{{else}} {{else}}
<div class="entry translation {{if selected}}selected{{/if}}" parent-repository="{{:id}}"> <div class="entry translation {{if selected}}selected{{/if}}" parent-repository="{{:id}}">
<div class="country flag-{{:country_code}}" title="{{*:i18n.country_name(data.country_code || 'XX')}}"></div>
<div class="name">{{> name}}</div> <div class="name">{{> name}}</div>
<div class="button button-info"><div class="icon client-about"></div></div> <div class="button button-info"><div class="icon client-about"></div></div>
</div> </div>