Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Improvements for Demo_Gen #5715

Merged
merged 1 commit into from
Oct 19, 2024
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
1 change: 1 addition & 0 deletions tutorials/web-demo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>Diplomat Demo Generation Example</title>
<script src="dist/index.bundle.js"></script>
<link rel="stylesheet" href="dist/index.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
Expand Down
3 changes: 2 additions & 1 deletion tutorials/web-demo/public/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="dist/rendering.bundle.js" defer></script>
<title>Rendering Function</title>
<link rel="stylesheet" href="dist/index.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="main" class="container">
Expand All @@ -14,7 +15,7 @@
<template id="terminus">
<link rel="stylesheet" href="dist/index.css"/>
<div class="vstack gap-2">
<h1><slot name="func-name"></slot></h1>
<h1 class="text-break"><slot name="func-name"></slot></h1>
<slot name="parameters"></slot>
<button type="submit" class="btn btn-primary" data-submit>Submit</button>
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion tutorials/web-demo/src/js/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { RenderInfo } from "icu4x/demo";
Object.values(RenderInfo.termini).forEach((t) => {
let a = document.createElement("a");
a.classList.add("list-group-item", "list-group-item-action");
a.innerHTML = `<a href="template.html?func=${t.funcName}">${t.funcName}</a>`;
a.innerHTML = `<a href="template.html?func=${t.funcName}" class="text-break">${t.funcName}</a>`;
document.getElementById("links").appendChild(a);
});