Merge pull request #484 from YunoHost/fix-domain

[fix] domain apps styling and tooltip trigger method
This commit is contained in:
Alexandre Aubin 2022-10-31 13:23:08 +01:00 committed by GitHub
commit dbb17155c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 16 deletions

View file

@ -11,7 +11,7 @@
</b-button> </b-button>
<b-popover <b-popover
placement="auto" placement="auto"
:target="id" triggers="click" custom-class="explain-what-popover" :target="id" triggers="focus" custom-class="explain-what-popover"
:variant="variant" :title="title" :variant="variant" :title="title"
> >
<span v-html="content" /> <span v-html="content" />

View file

@ -57,23 +57,25 @@
<!-- DOMAIN APPS --> <!-- DOMAIN APPS -->
<description-row :term="$t('domain.info.apps_on_domain')"> <description-row :term="$t('domain.info.apps_on_domain')">
<b-button-group <div>
v-for="app in domain.apps" :key="app.id" <b-button-group
size="sm" class="mr-2" v-for="app in domain.apps" :key="app.id"
> size="sm" class="mr-2 mb-2"
<b-button class="py-0 font-weight-bold" variant="outline-dark" :to="{ name: 'app-info', params: { id: app.id }}">
{{ app.name }}
</b-button>
<b-button
variant="outline-dark" class="py-0 px-1"
:href="'https://' + name + app.path" target="_blank"
> >
<span class="sr-only">{{ $t('app.visit_app') }}</span> <b-button class="py-0 font-weight-bold" variant="outline-dark" :to="{ name: 'app-info', params: { id: app.id }}">
<icon iname="external-link" /> {{ app.name }}
</b-button> </b-button>
</b-button-group> <b-button
variant="outline-dark" class="py-0 px-1"
:href="'https://' + name + app.path" target="_blank"
>
<span class="sr-only">{{ $t('app.visit_app') }}</span>
<icon iname="external-link" />
</b-button>
</b-button-group>
{{ domain.apps.length ? '' : $t('words.none') }} {{ domain.apps.length ? '' : $t('words.none') }}
</div>
</description-row> </description-row>
</card> </card>