@import 'src/assets/styles/responsive-base.scss';

.attached-file-url {
  padding: 8px;
  margin: 8px 0px;
  border-radius: 4px;
  box-sizing: border-box;

  .result-thumbnail {
    margin-right: 8px;
    max-width: 75px;
    height: 96px;
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    @include screen('phone') {
      margin-right: 0;
      margin-bottom: 8px;
    }

    app-blob-viewer {
      max-height: 96px;
    }
  }

  .preview {
    display: flex;

    .big-mdi {
      font-size: 75px;
      line-height: 75px;
      margin-right: 8px;
      margin-top: 8px;
      margin-bottom: 8px;
      height: 96px;
    }

    @include screen('phone') {
      flex-direction: column;
      align-items: center;
    }

    span:not(.mdi) {
      margin: 2px;
      display: inline-block;
    }

    .details {
      flex: 1 1 auto;

      .file-name {
        word-break: break-all;
        display: inline;
      }

      .room-data {
        display: flex;
        align-items: center;

        app-avatar {
          width: 20px;
          height: 20px;
          margin: 0 8px;
        }
      }

      .actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        mat-icon {
          margin: 4px;
          cursor: pointer;
        }
      }
    }
  }
}
