Skip to content

Commit

Permalink
style(pdf): configuration switcher margin-left
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Nov 16, 2021
1 parent 1529af0 commit 65490cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 18 deletions.
33 changes: 27 additions & 6 deletions src/components/editor/pdf/set/PDFConfigurationSetProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,57 +45,78 @@
</div>
<div class="wb-input-container">
<section
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{ t('editor.pdf.project.permissions.modifying') }}</label>
<InputBoolean v-model="PROJECT.pdf.permissions.modifying" />
<InputBoolean
v-model="PROJECT.pdf.permissions.modifying"
class="ml-2"
/>
</section>
</div>
<div class="wb-input-container">
<section
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{ t('editor.pdf.project.permissions.copying') }}</label>
<InputBoolean v-model="PROJECT.pdf.permissions.copying" />
<InputBoolean
v-model="PROJECT.pdf.permissions.copying"
class="ml-2"
/>
</section>
</div>
<div class="wb-input-container">
<section
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{ t('editor.pdf.project.permissions.annotating') }}</label>
<InputBoolean v-model="PROJECT.pdf.permissions.annotating" />
<InputBoolean
v-model="PROJECT.pdf.permissions.annotating"
class="ml-2"
/>
</section>
</div>
<div class="wb-input-container">
<section
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{ t('editor.pdf.project.permissions.fillingForms') }}</label>
<InputBoolean v-model="PROJECT.pdf.permissions.fillingForms" />
<InputBoolean
v-model="PROJECT.pdf.permissions.fillingForms"
class="ml-2"
/>
</section>
</div>
<div class="wb-input-container">
<section
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{
t('editor.pdf.project.permissions.contentAccessibility')
}}</label>
<InputBoolean
v-model="PROJECT.pdf.permissions.contentAccessibility"
class="ml-2"
/>
</section>
</div>
<div class="wb-input-container">
<section
class="ml-2"
class="flex items-center"
:class="[!PDF.styles.switcher.encryption ? 'wb-disabled' : '']"
>
<label>{{
t('editor.pdf.project.permissions.documentAssembly')
}}</label>
<InputBoolean v-model="PROJECT.pdf.permissions.documentAssembly" />
<InputBoolean
v-model="PROJECT.pdf.permissions.documentAssembly"
class="ml-2"
/>
</section>
</div>
</section>
Expand Down
15 changes: 4 additions & 11 deletions src/components/editor/pwa/PWAPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
"
role="alert"
>
<HeroIcon
class="absolute right-0 top-0 wb-icon"
@click.prevent="close"
>
<HeroIcon class="absolute right-0 top-0 wb-icon" @click.prevent="close">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
Expand Down Expand Up @@ -57,14 +54,10 @@
const { t } = useI18n()
const {
offlineReady,
needRefresh,
updateServiceWorker,
} = useRegisterSW()
const { offlineReady, needRefresh, updateServiceWorker } = useRegisterSW()
const close = async() => {
const close = async () => {
offlineReady.value = false
needRefresh.value = false
}
</script>
</script>
3 changes: 2 additions & 1 deletion src/lang/br/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ export default {
pwa: {
prompt: {
offlineReady: 'Aplicativo pronto para funcionar offline!',
newContent: 'Novo conteúdo disponível, clique no botão recarregar para atualizar.',
newContent:
'Novo conteúdo disponível, clique no botão recarregar para atualizar.',
reload: 'Atualizar',
close: 'Fechar',
},
Expand Down

0 comments on commit 65490cf

Please sign in to comment.