Skip to content

Commit 73df713

Browse files
committed
fix: fix break-word style on ic_message_frontend
1 parent 1c26f73 commit 73df713

File tree

10 files changed

+41
-10
lines changed

10 files changed

+41
-10
lines changed

proposals/proposal-236.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $
2222
}
2323
)" > proposal-message.json
2424

25-
quill send proposal-message.json
25+
# quill send proposal-message.json

proposals/proposal-240.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $
1414
}
1515
)' > proposal-message.json
1616

17-
quill send proposal-message.json
17+
# quill send proposal-message.json

proposals/proposal-241.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
# Load the environment variables
4+
source "$(pwd)"/proposals/env.sh
5+
6+
# build and get batch_id, evidence:
7+
# dfx deploy ic_message_frontend --ic --by-proposal
8+
9+
export BLOB="$(didc encode --format blob '(record {batch_id=33:nat; evidence=blob "\dc\09\60\a5\5b\ac\49\ea\14\a8\19\85\c1\13\56\d7\c8\3f\eb\24\ce\fa\02\44\70\df\25\2b\58\0f\4a\60"})')"
10+
11+
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
12+
record {
13+
title = \"Execute commit_proposed_batch() to release ic_message_frontend v2.6.10\";
14+
url = \"https://dMsg.net/\";
15+
summary = \"This proposal executes commit_proposed_batch() on 2fvu6-tqaaa-aaaap-akksa-cai to release ic_message_frontend v2.6.10.\n\n1. fix: fix break-word style.\";
16+
action = opt variant {
17+
ExecuteGenericNervousSystemFunction = record {
18+
function_id = 1100 : nat64;
19+
payload = ${BLOB};
20+
}
21+
};
22+
}
23+
)" > proposal-message.json
24+
25+
# quill send proposal-message.json

src/ic_message_frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@
8282
"test": "vitest run"
8383
},
8484
"type": "module",
85-
"version": "2.6.9"
85+
"version": "2.6.10"
8686
}

src/ic_message_frontend/src/app.pcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ body {
4343
radial-gradient(at 100% 60%, hsla(137, 58%, 16%, 0.98) 0px, transparent 50%);
4444
}
4545

46+
.break-words {
47+
word-break: break-word;
48+
overflow-wrap: break-word;
49+
}
50+
4651
.icpanda-message {
4752
font-family: -apple-system, BlinkMacSystemFont, 'system-ui', 'Segoe UI',
4853
'Noto Sans', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',

src/ic_message_frontend/src/lib/components/messages/ChannelFileCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
</div>
126126
{/if}
127127
<div class="flex w-full flex-row items-center justify-center px-4">
128-
<p class="break-word text-pretty py-2"><span>{file.name}</span></p>
128+
<p class="text-pretty break-words py-2"><span>{file.name}</span></p>
129129
<button
130130
type="button"
131131
class="btn btn-sm text-surface-500 hover:text-black dark:hover:text-white"

src/ic_message_frontend/src/lib/components/messages/ChannelMessages.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@
577577
{#if msg.error}
578578
<p class="w-full text-pretty px-4 py-2 text-sm">{msg.error}</p>
579579
{:else}
580-
<pre class="icpanda-message break-word min-h-4 w-full text-pretty px-4 py-2"
580+
<pre
581+
class="icpanda-message min-h-4 w-full text-pretty break-words px-4 py-2"
581582
>{msg.message}</pre
582583
>
583584
{/if}
@@ -780,7 +781,7 @@
780781
</div>
781782
{:else if uploading}
782783
<div class="btn btn-sm truncate px-2">
783-
<span class="break-word max-w-52 text-pretty"
784+
<span class="max-w-52 text-pretty break-words"
784785
>{`${uploading.name}, ${getBytesString(uploading.filled)}/${getBytesString(uploading.size || uploading.filled)}`}</span
785786
>
786787
<span class="*:size-5">
@@ -797,7 +798,7 @@
797798
minHeight="40"
798799
maxHeight="200"
799800
containerClass=""
800-
class="break-word textarea text-pretty border-0 !bg-transparent outline-0 ring-0"
801+
class="textarea text-pretty break-words border-0 !bg-transparent outline-0 ring-0"
801802
name="prompt"
802803
id="prompt"
803804
disabled={submitting > 0}

src/ic_message_frontend/src/lib/components/ui/SendTokenForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
</div>
225225
<div class="flex flex-row justify-between">
226226
<span>Available Balance</span>
227-
<span class="break-word text-pretty text-right">
227+
<span class="text-pretty break-words text-right">
228228
{txInfo.balance}
229229
{token.symbol}
230230
</span>

src/ic_message_frontend/src/lib/components/ui/TextAreaAutosize.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<div class="relative !p-0 {containerClass}" class:drag-over={dragOver}>
5353
<pre
5454
aria-hidden="true"
55-
class="break-word invisible w-full text-pretty px-3 py-2"
55+
class="invisible w-full text-pretty break-words px-3 py-2"
5656
style="min-height: {minHeight}px; max-height: {maxHeight}px"
5757
>{value + ' '}</pre
5858
>

src/ic_message_frontend/src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const src = globalThis.location?.href || ''
22

3-
export const APP_VERSION = '2.6.9'
3+
export const APP_VERSION = '2.6.10'
44
export const IS_LOCAL = src.includes('localhost') || src.includes('127.0.0.1')
55
export const ENV = IS_LOCAL ? 'local' : 'ic'
66
export const APP_ORIGIN = IS_LOCAL

0 commit comments

Comments
 (0)