side panel title

pull/1/head
LianaHus 6 years ago
parent 98f14e3823
commit b0a3f7545f
  1. 8
      src/app/components/side-panel.js

@ -10,6 +10,8 @@ const css = csjs`
.swapitTitle { .swapitTitle {
text-transform: uppercase; text-transform: uppercase;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.swapitTitle i{ .swapitTitle i{
padding-left: 6px; padding-left: 6px;
@ -21,6 +23,7 @@ const css = csjs`
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
justify-content: flex-start;
} }
.swapitHeader h6 { .swapitHeader h6 {
margin: 0; margin: 0;
@ -33,6 +36,9 @@ const css = csjs`
height: calc(100% - 35px); height: calc(100% - 35px);
overflow: auto; overflow: auto;
} }
.titleInfo {
padding-left: 10px;
}
` `
const options = { const options = {
@ -64,7 +70,7 @@ export class SidePanel extends AbstractPanel {
const { profile } = this.store.getOne(this.active) const { profile } = this.store.getOne(this.active)
name = profile.displayName ? profile.displayName : profile.name name = profile.displayName ? profile.displayName : profile.name
const docsRoot = 'https://remix.readthedocs.io/en/latest/' const docsRoot = 'https://remix.readthedocs.io/en/latest/'
docLink = profile.documentation ? yo`<a href="${docsRoot}${profile.documentation}" title="link to documentation" target="_blank"><i aria-hidden="true" class="fas fa-book"></i></a>` : '' docLink = profile.documentation ? yo`<a href="${docsRoot}${profile.documentation}" class="${css.titleInfo}" title="link to documentation" target="_blank"><i aria-hidden="true" class="fas fa-book"></i></a>` : ''
} }
return yo` return yo`

Loading…
Cancel
Save