Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified front_end/Images/react_native/learn-debugging-basics.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified front_end/Images/react_native/learn-native-debugging.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified front_end/Images/react_native/welcomeIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions front_end/panels/rn_welcome/RNWelcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,14 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
</x-link>
</div>
${launchId ? html`
<div class="rn-session-id-message">
${i18nString(UIStrings.sessionIdMessage)}
<div class="rn-session-id">
<aside>
<div class="rn-session-id-message">
${i18nString(UIStrings.sessionIdMessage)}
</div>
<div class="code-block rn-session-id">
${launchId}
</div>
</div>
</aside>
` : ''}
${this.#reactNativeVersion !== null && this.#reactNativeVersion !== undefined ? html`
<p class="rn-welcome-version">React Native: <code>${this.#reactNativeVersion}</code></p>
Expand Down
46 changes: 28 additions & 18 deletions front_end/panels/rn_welcome/rnWelcome.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
.rn-welcome-icon {
width: 30px;
height: 30px;
border-radius: 4px;
border-radius: 7px;
margin-right: 12px;
}

Expand All @@ -65,7 +65,7 @@
.rn-welcome-title-accessory {
margin-left: 12px;
padding: 4px 8px;
border-radius: 4px;
border-radius: 6px;
background-color: var(--sys-color-green-bright);
font-size: 12px;
color: var(--sys-color-primary);
Expand Down Expand Up @@ -101,23 +101,14 @@
border-right: 1px solid var(--sys-color-on-base-divider);
}

.rn-session-id-message {
display: block;
margin-top: 24px;
}

.rn-session-id-message > .rn-session-id {
user-select: all;
}

.rn-welcome-version {
position: fixed;
top: 8px;
right: 8px;
margin-top: 24px;
padding: 4px 12px;
border-radius: 6px;
background-color: var(--sys-color-surface-variant);
border-radius: 8px;
background: var(--sys-color-surface2);
color: var(--color-text-secondary);
font-size: 11px;
}
Expand Down Expand Up @@ -158,9 +149,9 @@
margin-bottom: 8px;
padding: 8px;
padding-right: 16px;
border: 1px solid var(--input-outline);
border-radius: 4px;
background-color: var(--color-background);
border: 1px solid var(--sys-color-divider);
border-radius: 10px;
background-color: var(--sys-color-base);
text-align: left;
font-size: 14px;
cursor: pointer;
Expand All @@ -187,10 +178,29 @@
.rn-welcome-image {
flex-shrink: 0;
aspect-ratio: calc(16 / 9);
height: 64px;
height: 70px;
margin-right: 16px;
border-radius: 2px;
border-radius: 6px;
background-color: var(--sys-color-on-surface-subtle);
background-position: center;
background-size: cover;
}

.rn-session-id-message {
display: block;
margin-top: 64px;
margin-bottom: 8px;
}

.rn-session-id {
user-select: all;
cursor: text;
}

.code-block {
background: var(--sys-color-surface2);
padding: 8px;
border-radius: 8px;
color: var(--sys-color-on-surface);
font-family: var(--monospace-font-family);
}
Loading