HEX
Server: Apache/2
System: Linux server1c 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64
User: jandjware (1008)
PHP: 8.2.23
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/jandjware/public_html/wp-content/plugins/hostinger/vue-frontend/src/components/CopyField.vue
<script setup lang="ts">
import { defineProps, withDefaults } from "vue";
import { copyString } from "@/utils/helpers";
import Icon from "@/components/Icon/Icon.vue";

interface Props {
  link: string;
}

withDefaults(defineProps<Props>(), {});
</script>

<template>
  <div class="copy-field" @click="copyString(link)">
    <span class="copy-field__link">{{ link }}</span>
    <Icon name="icon-content-copy" color="primary" />
  </div>
</template>

<style lang="scss" scoped>
.copy-field {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  word-wrap: break-word;
  align-items: center;
  background: var(--gray-light);

  &__link {
    flex: 1 1 auto;
    color: var(--gray);
    overflow-wrap: anywhere;
  }
}
</style>